Provision Grafana alert contactpoints and policies for Slack
This commit is contained in:
parent
837e443800
commit
e0c3789f74
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: 1
|
||||||
|
|
||||||
|
contactPoints:
|
||||||
|
- orgId: 1
|
||||||
|
name: SlackNotifier
|
||||||
|
receivers:
|
||||||
|
- uid: a71b06e3-58b6-41fe-af65-fbbb29653951
|
||||||
|
type: slack
|
||||||
|
settings:
|
||||||
|
# Slack hook URL
|
||||||
|
url: <YOUR_SLACK_HOOK_URL>
|
||||||
|
disableResolveMessage: false
|
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: 1
|
||||||
|
|
||||||
|
policies:
|
||||||
|
- orgId: 1
|
||||||
|
receiver: grafana-default-email
|
||||||
|
group_by:
|
||||||
|
- grafana_folder
|
||||||
|
- alertname
|
||||||
|
routes:
|
||||||
|
- receiver: SlackNotifier
|
||||||
|
object_matchers:
|
||||||
|
# Add matchers below
|
||||||
|
# - ['grafana_folder', '=', 'MyAlerts']
|
Loading…
Reference in New Issue
Block a user