A primeira correspondência vence (a menos que haja continue)
ordemDentro de uma rota correspondente, as filhas são avaliadas de cima para baixo. O alerta toma a PRIMEIRA irmã correspondente e para — as irmãs seguintes são puladas, a menos que continue: true esteja definido.
Armadilha
# Order matters — the broad rule above shadows the specific one
routes:
- receiver: catch-all # matches everything below
matchers: ['severity=~".*"']
- receiver: db-pager # NEVER reached
match: { service: database } Solução
# Specific first, broad last — or use continue
routes:
- receiver: db-pager
match: { service: database }
- receiver: catch-all
matchers: ['severity=~".*"']