Hello,
This is my alertmanager.yml file:
------------------------------------------------------------------------------------------
global:
slack_api_url: '< slack_url >'
route:
receiver: 'Monitorbot'
# All alerts in a notification have the same value for these labels.
group_by: [alertname, datacenter, app]
route:
receiver: 'Production'
# All alerts in a notification have the same value for these labels.
group_by: [Env, alertname, datacenter, app]
receivers:
- name: 'Production'
slack_configs:
- channel: '#alerts'
title: "{{ range .Alerts }}{{ .Annotations.summary }}\n{{ end }}"
text: "{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}"
- name: 'Monitorbot'
slack_configs:
- channel: '#devops'
title: "{{ range .Alerts }}{{ .Annotations.summary }}\n{{ end }}"
text: "{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}"
------------------------------------------------------------------------------------------
My objective is to send alerts with the label {Env : 'production'} to the #alerts channel and all the alerts (including the ones with this label} to the #devops channel.
How should i change my configuration to achieve this?