try to fix prometheus
try to fix prometheus 2 try to fix prometheus 3
This commit is contained in:
parent
ffaf6a079e
commit
778306127f
2 changed files with 20 additions and 12 deletions
15
prometheus/templates.yaml
Normal file
15
prometheus/templates.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
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 }}
|
Loading…
Add table
Add a link
Reference in a new issue