AlertManager ver. 0.26.0
I’ve been trying to forward alerts to 2 Slack channels, but without success…
Here’s my Prometheus config file:
- job_name: 'node_exporter_metrics_staging'
scrape_interval: 5s
static_configs:
- targets:
[
'staging.domain.tld:9100',
]
- job_name: 'node_exporter_metrics_test'
scrape_interval: 5s
static_configs:
- targets:
[
'test.cli:9100',
]
This is the Alert Manager config file:
route:
group_by: ['alertname', 'group', 'instance']
group_wait: 30s
group_interval: 5m
repeat_interval: 1h
# default receiver
receiver: 'test-receiver'
routes:
- match:
group: 'node_exporter_metrics_staging'
continue: true
receiver: 'staging-receiver'
- match:
group: 'node_exporter_metrics_test'
continue: true
receiver: 'test-receiver'
And this is the alerts file
groups:
- name: alert.rules
rules:
# INSTANCE DOWN
- alert: Instance_Down
expr: up == 0
for: 1m
labels:
severity: "critical"
annotations:
summary: "Instance {{ $labels.instance }} is down"
description: "{{ $labels.instance }} has been down for more than 1 minutes."
With this config, alerts are being forwarded only to default receiver (test-receiver).
Am I missing something?