-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yaml
68 lines (68 loc) · 1.89 KB
/
config.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
heartbeats:
prometheus-int:
description: test workflow prometheus -> alertmanager
sendResolve: true
interval: 2s
grace: 1s
notifications: # must match with notifications
- int-slack
prometheus-dev:
description: test workflow prometheus -> alertmanager
sendResolve: true
interval: 2s
grace: 1s
notifications: # must match with notifications
- dev-slack
- gmail
notifications:
dev-slack:
enabled: true
slack_config:
channel: int-monitoring
token: env:SLACK_TOKEN
title: Heartbeat {{ .Name }} {{ upper .Status }}
text: |
*Description:*
{{ .Description }}.
Last ping: {{ if isRecent .LastPing }}now{{ else }}{{ ago .LastPing }}{{ end }}
int-slack:
enabled: true
slack_config:
channel: int-monitoring
token: env:SLACK_TOKEN
title: Heartbeat {{ .Name }} {{ upper .Status }}
text: |
*Description:*
{{ .Description }}.
Last ping: {{ if isRecent .LastPing }}now{{ else }}{{ ago .LastPing }}{{ end }}
gmail:
enabled: false
mail_config:
smtp:
host: smtp.gmail.com
port: 587
from: env:MAIL_FROM
username: env:MAIL_USERNAME
password: env:MAIL_PASSWORD
startTLS: true
skipInsecureVerify: true
email:
isHTML: true
subject: Heartbeat {{ .Name }} {{ upper .Status }}
body: |
<b>Description:</b><br>
{{ .Description }}.<br>
Last ping: {{ .LastPing }}
to:
- env:EMAIL_TO
int-teams:
enabled: false
msteams_config:
title: Heartbeat {{ .Name }} {{ upper .Status }}
text: |
*Description:*
{{ .Description }}.
Last ping: {{ if isRecent .LastPing }}now{{ else }}{{ ago .LastPing }}{{ end }}
webhook_url: file:/secrets/teams/webhooks//int-teams