How do I add values from my alert query as a label...
# support
s
How do I add values from my alert query as a label? I tried
value:{{value}}
but that did not work. Is there any another way to display the values in the alert being sent?
a
we support both go template and $labels or $value notations like prometheus. example: {{.Labels.serviceName}} {{$labels.serviceName}} for value try {{$value}} the result of alert query will be populated in value
s
Where does this go? In the alert channel configuration?
a
when you create alert rule. you can see labels section.
image.png
s
Got it. Thank you!