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 upLabels in alert cant't be used in annotation #5405
Comments
This comment has been minimized.
This comment has been minimized.
|
I'm afraid this is not something that can be done, all labels/annotations are evaluated independently with no ordering as there is no sane ordering. I'd suggest creating a recording rule for the time series with the labels you need. |
simonpasquier
referenced this issue
Apr 11, 2019
Closed
prometheus dont support use labels of rule in annotations? #1831
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
freeseacher commentedMar 26, 2019
Proposal
I'm mocking alert to make better templates for opsgenie. I do not have any data in prometheus and no plans to have it in on my laptop. While doing templates i want to build several alerts and make sure that my pretty complex templates works as expected. Especially grouping and selection which annotation will win after grouping and inhibit rules.
I'm extremely frustrated that i can't mock alert info with
vector(1)and added alert labels.Bug Report
What did you do?
Mocking templates and sending them to fake opsgenie receiver
What did you expect to see?
Summary field templates well.
What did you see instead? Under which circumstances?
My label data was not rendered at all.
Environment
Laptop with linux
System information:
NA
Prometheus version: