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

Some labels rules defined by Prometheus can't get the custom labels value ? #5013

Closed
ThorManager opened this issue Dec 30, 2021 · 1 comment

Comments

@ThorManager
Copy link

Dear developer

Can't I get some labels defined by myself when I need to set the global view, For example, I defined that {{$labels. Role}} is empty when the role alarms. Is there a way to solve it?
image
image

@yeya24
Copy link
Contributor

yeya24 commented Dec 30, 2021

That's more like a question to prometheus rules configuration.

To use the label from template, you need to have role label in your metric.

@yeya24 yeya24 closed this as completed Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants