-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export Kubernetes Labels with Pods #99
Comments
Currently, dcgm-exporter does not provide a way to output all pod labels to Prometheus. |
@nikkon-dev is there any way to specify adding replicaset / deployment to the output too? or would that be in line with the pod annotations request |
@syandroo, |
@nikkon-dev either the names of the replicaset or deployment are good, but being able to export pod labels would be sufficient, as we have them labeled anyway |
Hi, you don't want to do this as part of the dcgm exporter. You should make sure that these pods are collected with a kubernetes service discovery style job in prometheus. (https://prometheus.io/docs/prometheus/latest/configuration/configuration/#pod) You can then use a labelmap to assign pod labels as labels in prometheus. There's a perfectly good example at https://github.com/prometheus/prometheus/blob/main/documentation/examples/prometheus-kubernetes.yml#L288. |
Hey!
We're using the helm chart within our kubernetes cluster. We're able to collect exported pod/namespace but labels belonging to the pods are not being collected. Is there a way to collect these as well?
The text was updated successfully, but these errors were encountered: