collect metrics and build graphs