Add a worker that periodically updates the metrics.