I have hundreds of hosts reporting to a prometheus server. I have many exporters per host. I want to be able to make a list of hosts that I don't want alerting from. I still need the prometheus monitoring on these hosts.
I've tried matching a route with no receiver. It doesn't work. What am I doing wrong? Or, how should I be doing this?
My route rules. I would expect the first match to match the ignorable instances and parsing to stop. I still get the alerts. :-(
route:
receiver: 'team-ops-mails'
group_by: ['alertname', 'cluster']
group_wait: 30s
group_interval: 2m
repeat_interval: 2h
routes:
- match_re:
instance: "int-pg-01:.*"
continue: false
- match:
nopage: true
receiver: team-mattermost
repeat_interval: 24h
- match:
severity: hwerror
receiver: hwerror-receiver
repeat_interval: 24h
- match:
role: worker
receiver: team-mattermost
- match:
role: ven-entrance
receiver: team-mattermost