Adding labels from a namespace to kube_namespace_labels

560 views
Skip to first unread message

Kevin Cameron

unread,
Nov 18, 2021, 11:30:55 PM11/18/21
to Prometheus Users
We are using a typical deployment for Kubernetes to collect Prometheus metrics.  When I inspect the metric kube_namespace_labels which comes from  job=Kubernetes-service_endpoints from Kubernetes_name=kube-state-metrics it does not include the 2 labels we have added to our namespaces which are visible during a kubectl describle namespace X

Is there anything special I have to do to allow/enable namespace labels to be used by kube-state-metrics?  To be specific I want to expose the kiosk.sh/account label.

Thanks,
Kevin
Reply all
Reply to author
Forward
0 new messages