core-deployments/prometheus/templates.yaml
Tom Neuber e00cc2d4dd
Some checks failed
ci/woodpecker/push/yamllint Pipeline failed
fix typos and file layout for yamllint
2024-10-07 09:19:54 +02:00

16 lines
414 B
YAML

---
apiVersion: v1
kind: ConfigMap
metadata:
name: templates
namespace: prometheus
data:
telegram.tmpl: |-
{{ define "telegram.aaron" }}
{{ range .Alerts }}
{{ if eq .Status "firing"}}🔥 <b>{{ .Labels.alertname }}</b> 🔥{{ else }}✅ <b>{{ .Labels.alertname }}</b> ✅{{ end }}
<b> {{ .Annotations.summary }} </b>
{{ .Annotations.description }}
{{ end }}
{{ end }}