Today I played a little bit with cAdvisor
to monitor all my microservices in my docker containers. All those microservices are providing tons of metrics using prometheus. The prometheus path for every microservice is
/management/prometheus
cAdvisor is gathering all metrics which are accessible under /metrics
and for now I could not find any possibility to configure that path. I want cAdvisor to pull all metrics from /management/promehteus
. Is it somehow possible to configure cAdvisor to do so?
The recommended way to do this would be to have Prometheus scrape each of the microservices directly, rather than going via something like cAdvisor.
If you were using Consul or Kubernetes for example, your Prometheus could use their respective types of service discovery to find all the services you need to monitor.