ready for runners
This commit is contained in:
parent
fc9971ddc9
commit
7dd5043b5d
49 changed files with 2569 additions and 1085 deletions
|
|
@ -0,0 +1,37 @@
|
|||
{{ define "telegram.markdown.message" }}
|
||||
{{- if eq .Status "firing" -}}
|
||||
{{- if eq .CommonLabels.severity "critical" -}}
|
||||
🔴 Alert: {{ .CommonLabels.alertname }}
|
||||
{{- else if eq .CommonLabels.severity "warning" -}}
|
||||
🟠 Alert: {{ .CommonLabels.alertname }}
|
||||
{{- else -}}
|
||||
⚪️ Alert: {{ .CommonLabels.alertname }}
|
||||
{{- end }}
|
||||
Status: 🔥 FIRING
|
||||
Severity: {{ if eq .CommonLabels.severity "critical" }}🔴 {{ .CommonLabels.severity | title }}{{ else if eq .CommonLabels.severity "warning" }}🟠 {{ .CommonLabels.severity | title }}{{ else }}⚪️ {{ .CommonLabels.severity | title }}{{ end }}
|
||||
{{- else if eq .Status "resolved" -}}
|
||||
⚪️ Alert: {{ .CommonLabels.alertname }}
|
||||
Status: ✅ RESOLVED
|
||||
Severity: {{ if eq .CommonLabels.severity "critical" }}🟢 {{ .CommonLabels.severity | title }}{{ else if eq .CommonLabels.severity "warning" }}🟢 {{ .CommonLabels.severity | title }}{{ else }}⚪️ {{ .CommonLabels.severity | title }}{{ end }}
|
||||
{{- end }}
|
||||
|
||||
{{- range .Alerts -}}
|
||||
|
||||
{{- if .Labels.job }}
|
||||
Job: `{{ .Labels.job }}`
|
||||
{{- end }}
|
||||
|
||||
{{- if .Labels.namespace }}
|
||||
Namespace: `{{ .Labels.namespace }}`
|
||||
{{- end }}
|
||||
|
||||
{{- if .Labels.instance }}
|
||||
Instance: `{{ .Labels.instance }}`
|
||||
{{- end }}
|
||||
|
||||
{{- if .Annotations.runbook_url }}
|
||||
[RunbookURL]({{ .Annotations.runbook_url }})
|
||||
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue