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

Labels in alert cant't be used in annotation #5405

Open
freeseacher opened this Issue Mar 26, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@freeseacher
Copy link

freeseacher commented Mar 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:

prometheus, version 2.7.1 (branch: HEAD, revision: 62e591f928ddf6b3468308b7ac1de1c63aa7fcf3)
  build user:       root@f9f82868fc43
  build date:       20190131-11:16:59
  go version:       go1.11.5
@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Mar 26, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.