Last active
June 13, 2025 07:01
-
-
Save trexx/76e18880d14a286f6dfe29c6d027694d to your computer and use it in GitHub Desktop.
Grafana Template for PagerDuty ContactPoints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the incident severity based upon the severity label in the alert rule | |
# Only include the valid severity values or default to critical if none exists or invalid | |
{{- range .Alerts -}}{{- if or (eq .Labels.severity "critical") (eq .Labels.severity "error") (eq .Labels.severity "warning") (eq .Labels.severity "info") -}}{{ .Labels.severity }}{{- else -}}critical{{- end -}}{{- end -}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment