forked from containeroo/heartbeats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigmap.yaml
40 lines (40 loc) · 1.48 KB
/
configmap.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
---
apiVersion: v1
kind: ConfigMap
metadata:
name: heartbeats
namespace: heartbeats
data:
config.yaml: |
---
heartbeats:
- name: watchdog-prometheus-prd
uuid: 9e22b12b-a9c0-4820-8e54-1b9e226ff45f
description: test workflow prometheus -> alertmanager
interval: 5m
grace: 30s
notifications: # must match with notifications.services[*].name
- slack
- gmail
- name: watchdog-prometheus-int
description: test workflow prometheus -> alertmanager
interval: 60m
grace: 5m
notifications:
- msteams
notifications:
defaults:
sendResolved: true
message: "Description:\n{{.Description}}.\n\nLast ping: {{ .TimeAgo .LastPing }}"
services:
- name: slack
enabled: true
message: "*Description:*\n{{ .Description }}.\n\nLast ping: {{ .TimeAgo .LastPing }}"
shoutrrr: slack://$SLACK_TOKEN@test?color={{ if eq .Status "OK" }}good{{ else }}danger{{ end }}&title=Heartbeat {{ .Name }} «{{ .Status }}»&botname=heartbeats
- name: gmail
enabled: true
sendResolved: false
shoutrrr: smtp://<USERNAME>:$MAIL_PASSWORD@smtp.gmail.com:587?from=example@gmail.com&to=example@gmail.com&subject=Heartbeat {{ .Name }} «{{ .Status }}»
- name: msteams
enable: true
shoutrrr: https://<organization>.webhook.office.com/webhookb2/<group>@<tenant>/IncomingWebhook/<altId>/<groupOwner>