Hello everybody!
I need send with alert messages grafana dashboard.
I have configured to send alerts to the slack of the form:
Instance check switch 192.168.0.17 down
192.168.0.17 snmp job not running for more than 30 seconds.
How to add a line - link to grafana control panel?
Here is my config:
global:
slack_api_url: Slack API | Slack
opsgenie_api_key: XXXXXXXXXXXXXXXXXXXXXXXXXXX
route:
group_by: [‘alertname’, ‘cluster’, ‘job’, ‘env’, ‘service’]
repeat_interval: 15m
group_interval: 3m
default - send ‘info’ to Slack only
receiver: ‘default’
routes:
# all ‘warning’ to the ‘warning’ receiver with P3
- match:
severity: warning
receiver: warning
# all ‘critical’ to the ‘critical’ receiver with P1
- match:
severity: critical
receiver: critical
receivers:
- name: ‘default’
slack_configs:- send_resolved: true
title: “ {{ .CommonAnnotations.summary }}”
text: “{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}”
- send_resolved: true
Or maybe what needs to be added to alert.rules?
Thanks