Write global metrics for tasks.