Added mechanisms to observe and modify the metrics collection state of a service.