Skip to content
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

Add additional prometheus labels to metrics #834

Open
ehuizar1028 opened this issue Apr 13, 2024 · 2 comments
Open

Add additional prometheus labels to metrics #834

ehuizar1028 opened this issue Apr 13, 2024 · 2 comments

Comments

@ehuizar1028
Copy link

What feature do you want to see added?

Not sure if this is possible, and I could not figure out if the feature exists, but is it possible to add additional labels to prometheus metrics from within jenkins?

Example:
jenkins.executor.online metric has a label that has the name of the build. Could we add additional labels to this metric? Seems like it's possible since the label can define the build name. Additional info like this can help create leaderboards in prometheus/grafana such as most running builds, most github repos checked out, etc.

I've also tried using opentelemetry collector processors such as metricstransform and attributes with upsert actions, but nothing seems to work.

Upstream changes

No response

Are you interested in contributing this feature?

No response

@ehuizar1028 ehuizar1028 added the enhancement New feature or request label Apr 13, 2024
@cyrille-leclerc
Copy link
Contributor

Can you please provide examples with the metric name and the attributes/labels you would like to add?

@shaiajneh
Copy link

@cyrille-leclerc
Hey,
Is it possible to add build name as a label to ci_pipeline_run_completed or ci_pipeline_run_failed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants