No label in kube_pod_info #1379
Unanswered
PierreRust
asked this question in
Q&A
Replies: 1 comment
-
This is by design to limit label cardinality. Users need to specify which labels they are interested in with |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've installed a basic kube-prometheus exporter, with no specific configuration and I need to join some metrics with the pod's labels.
This is usually done by joining with the
kube_pod_info
metric (from kube-state-metrics) but this metric, while present, does not contain any label. I've also check kube-state-metrics's exporter directly and it does not exposes the labels.For example with a test pod and a app label:
The exposed metrics does not contain the app label :
I'm wondering if that may come from the way kube-state-metrics is configured by the operator, From what I see in kubernetes/kube-state-metrics#1501
--metric-labels-allowlist=pods=[*]
should be passed to kube-state-metrics to collect all labels.I that something that's missing the operator configuration for kube-state-metrics or am I missing something else ?
If you think that's a bug, I can of course create an issue for this.
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions