prometheus-operator: kubernetes_io_hostname missing in metrics
What did you do? Tried to install this grafana dashboard https://grafana.com/dashboards/315
What did you expect to see? Dashboard working.
What did you see instead? Under which circumstances? Graphs are showing “no data points”
Environment Using kube-prometheus with v0.14.1 prometheus-operator release.
-
Kubernetes version information: Client Version: version.Info{Major:“1”, Minor:“7”, GitVersion:“v1.7.5”, GitCommit:“17d7182a7ccbb167074be7a87f0a68bd00d58d97”, GitTreeState:“clean”, BuildDate:“2017-08-31T09:14:02Z”, GoVersion:“go1.8.3”, Compiler:“gc”, Platform:“linux/amd64”} Server Version: version.Info{Major:“1”, Minor:“7”, GitVersion:“v1.7.5”, GitCommit:“17d7182a7ccbb167074be7a87f0a68bd00d58d97”, GitTreeState:“clean”, BuildDate:“2017-10-04T09:07:46Z”, GoVersion:“go1.8.3”, Compiler:“gc”, Platform:“linux/amd64”}
-
Kubernetes cluster kind: Minikube but tried too in an Azure cluster created with acs-engine.
It seems that some labels are missing from a lot of metrics, I don’t know if the problem is related to Prometheus v2.0 or some other problem related with prometheus-operator itself, this is one of the metrics are failing now from the linked dashboard:
sum (rate (container_network_receive_bytes_total{kubernetes_io_hostname=~\"^$Node$\"}[1m]))
There was a problem getting the node name in the dashboard but I fixed that, now the next thing is failing and I am don’t know how to fix is that container_network_receive_bytes_total doesn’t have the label kubernetes_io_hostname available.
I would like to be able to integrate that dashboard, does anyone how to fix that? Thanks!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (6 by maintainers)
The metrics on cAdvisor have no stability guarantees unfortunately, so these may have changed. We’ll have to investigate.