-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Prometheus scraping of cAdvisor values does not work with Kubernetes 1.7 #1655
Comments
Know that even with that the data you get is not really consistent, see google/cadvisor#1704 |
Can confirm that solution above works on k8s 1.7. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Is this a request for help?: No
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Version of Helm and Kubernetes:
Helm 2.5.0
Kubernetes: 1.7.1
Which chart:
stable/prometheus
What happened:
All metrics that are provided by cAdvisor such as "container_network_receive_bytes_total" are not scraped by Prometheus. This prevents e.g. the very popular Grafana dashboard for Kubernetes from working (https://grafana.com/dashboards/315).
This is due to a change in kubectl and cAdvisor metrics in 1.7. This is very well described in the following Prometheus issue: prometheus/prometheus#2916
What you expected to happen:
To keep it compatible with Kubernetes 1.6. it might be necessary to have two versions of the Prometheus config.
How to reproduce it (as minimally and precisely as possible):
Install the Prometheus chart on a Kubernetes 1.7 cluster and try to find one of the cAdvisor metrics such as "container_network_receive_bytes_total".
Anything else we need to know:
There is a proposed scrape configuration in the Prometheus issue, that did work for me. I had to provide the serverfiles->prometheus.yaml with the fix.
The additional scrape config is:
The text was updated successfully, but these errors were encountered: