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 upAlert template expansion is broken for global labels #1128
Comments
juliusv
referenced this issue
Sep 29, 2015
Closed
Revert "Merge pull request #1051 from prometheus/globallabels" #1126
This comment has been minimized.
This comment has been minimized.
|
For this usage, expecting every single alert to remember to put |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil Agreed that this use case would better be solved via notification templates on the Alertmanager side. However, is there harm in also setting the global labels here? In the worst case, someone uses them where they weren't able to use them before... |
This comment has been minimized.
This comment has been minimized.
I'd generally consider it bad practice to use global labels in an alert definition, as that's not really maintainable as the structure of an organisation's global labels changes over time. I think we should be encouraging that only the labels of the alert expression be used. |
This comment has been minimized.
This comment has been minimized.
|
Ok, closing this issue here then - AM notification templates will solve this use case better. |
juliusv
closed this
Sep 29, 2015
brian-brazil
referenced this issue
Sep 29, 2015
Closed
Create a section ANNOTATIONS with user-defined payload and generalize RUNBOOK, DESCRIPTION, SUMMARY into fields therein. #1002
brian-brazil
referenced this issue
Nov 13, 2015
Closed
extra_labels are not usable in alert content #1218
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
dan-cleinmark commentedSep 29, 2015
Per @juliusv on IRC: "the template expansion happens before the global labels are attached: https://github.com/prometheus/prometheus/blob/master/rules/manager.go#L221-L222". This results in references to global labels to not expand in alerts.
Relevant bits from an email alert: