Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPlease add __meta_kubernetes_pod_status so 'completed' pods can be dropped from scrape #4823
Comments
This comment has been minimized.
This comment has been minimized.
|
We'll generally accept any metadata that's available, so feel free to send a PR. |
This comment has been minimized.
This comment has been minimized.
|
Looking more closely, I find |
bboreham
referenced this issue
Nov 5, 2018
Merged
Add __meta_kubernetes_pod_phase label in discovery #4824
brian-brazil
closed this
in
#4824
Nov 6, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bboreham commentedNov 5, 2018
Proposal
Use case. Why is this important?
Pods that are created by Kubernetes Job objects will go to
Completedstate if they finish without error.Without a way to stop scraping, the Prometheus
upstate goes to 0 and (in my current environment) this triggers an alert.The Kubernetes SD inserts various labels such as
__meta_kubernetes_pod_annotation...which allow relabel config to drop some targets. I would like to extend this to a meta label which would hold theCompletedstatus, so I can drop those pods from the targets.