-
Notifications
You must be signed in to change notification settings - Fork 153
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
disabled metrics based on label #707
Comments
We had this request a couple of times. I understand that this could be a useful feature but the labels are calculated when the metric is calculated. |
Ah I somehow missed it in searching issues. No worries. Like I said I have managed to mitigate it via relabeling/drop before prometheus ingestion. Overall awesome work on the project - kudos to you and the contributors around. |
Stale issue message |
. |
What feature do you want to see added?
Currently it seems as though you can only disable metrics by their name. I would like to disable metrics by a label match.
For instance in our environment I only am interested in master branch, so I would like to drop metrics, for instance that have jenkins_job="systems/terraform/PR.*"
I don't believe this would work using the regex capability today.
prometheus_jenkins_builds_stage_duration_milliseconds_summary_created(?!.master).
Currently I am dropping the metrics on relabel on the prometheus.yml side.
The text was updated successfully, but these errors were encountered: