You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alert templating *({{.Labels.severity | toUpper }}) fails when you don't have severity in alert rules into a string.
Example:
- alert: High Node CPU Usageannotations:
summary: Example summaryexpr: | <Example Expr>for: 5mlabels:
team: devopsseverity: "critical"
This will pass but
- alert: High Node CPU Usageannotations:
summary: Example summaryexpr: | <Example Expr>for: 5mlabels:
team: devopsseverity: critical # without quotes
This fails with msg="Error parsing values in template" error="template: message.tmpl:1:23: executing \"message.tmpl\" at <toUpper>: invalid value; expected string"
The text was updated successfully, but these errors were encountered:
Alert templating
*({{.Labels.severity | toUpper }})
fails when you don't haveseverity
in alert rules into a string.Example:
This will pass but
This fails with
msg="Error parsing values in template" error="template: message.tmpl:1:23: executing \"message.tmpl\" at <toUpper>: invalid value; expected string"
The text was updated successfully, but these errors were encountered: