Provision Grafana alert contactpoints and policies for Slack

This commit is contained in:
Prathamesh Musale 2023-12-27 10:03:46 +05:30
parent 837e443800
commit e0c3789f74
2 changed files with 25 additions and 0 deletions

View File

@ -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

View File

@ -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']