Why Kube state metrics only shows metrics related to the namespace where it is running? #2210
Unanswered
ThiagoScodeler
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have AWS EKS cluster with kube-state-metrics installed in a namespace called "monitoring". This installation is using service monitor and other components (see yaml files below).
In this cluster, there is also a prometheus agent running and selecting the kube-state-metrics service monitor.
kube-state-metrics is listed on Prometheus targets property but when I add a dashboard on Grafana to visualize these metrics, I can only see kube-state-metrics related to the "monitoring" namespace. EKS cluster has other namespaces and kube-state-metrics should display metrics for all of them.
I have a similar setup for Cadvisor and it works fine by showing metrics related to all namespaces.
Any idea why kube-state-metrics is showing only data related to the namespace it is running?
prometheus.yaml
kube-state-metrics:
service-monitor.yaml
service.yaml
deployment.yaml
cluster-role-binding.yaml
cluster-role.yaml
service-account.yaml
Beta Was this translation helpful? Give feedback.
All reactions