-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.example.yaml
30 lines (24 loc) · 1.21 KB
/
config.example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
#slack_token: <bot_token>>
#slack_channel: <channel_name>
#prometheus_url: <prom_url>
#s3_bucket: <s3_bucket_name>
#s3_region: eu-west-1
http_port: 8080
metric_resolution: 100
header_template: |
*{{ .Labels.alertname }}*
[Status]: {{if eq .Status "firing" }}:fire::fire::fire:{{else}}:white_check_mark::white_check_mark::white_check_mark:{{ end }}
footer_template: |
{{if eq .Status "firing" }}:fire: Refired{{else}}:white_check_mark: Resolved{{ end }} {{ dateFormat "15:04:05" now }}
message_template: |
:chart_with_upwards_trend: *<{{ .GeneratorURL }}|Graph>*
{{- if .Labels.runbook }} :notebook: *<{{ .Labels.runbook }}|Runbook>*{{ end }}
{{- if .Annotations.runbook_url }} :notebook: *<{{ .Annotations.runbook_url }}|Runbook>*{{ end }}
*Alert:* {{ if .Annotations.title }}{{ .Annotations.title }}{{ end }}{{ if .Annotations.summary }}{{ .Annotations.summary }}{{ end }}
{{ if .Labels.severity }}*Severity:* `{{ .Labels.severity }}`{{ end }}
{{ if .Annotations.message }}*Message:* {{ .Annotations.message }}{{ end }}
{{ if .Annotations.description }}*Description:* {{ .Annotations.description }}{{ end }}
*Details:*
{{ range $key, $value := .Labels }} • {{ $key }}: {{ $value }}
{{ end }}