core-deployments/prometheus/templates.yaml
Aaron Riedel 778306127f
try to fix prometheus
try to fix prometheus 2

try to fix prometheus 3
2023-08-30 22:56:03 +02:00

15 lines
No EOL
409 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 }}