Alertmanager fails to load config: `yaml: unmarshal errors: field matchers not found in type config.plain`
IntermediateTroubleshootingAlerting and Alertmanager
Answer
Likely causes → Alertmanager version is older than the config syntax (matchers: arrived in 0.22), or indentation puts it at the wrong level.
Diagnose →
amtool check-config alertmanager.yml
alertmanager --version
Fix → Upgrade Alertmanager or use the old match/match_re form; fix indentation.
Prevent → Run amtool check-config in CI with the same version as production.
More on Alerting and Alertmanager
An alert shows `Pending` in Prometheus but never goes to `Firing`BeginnerAn alert is `Firing` in Prometheus but nothing reaches AlertmanagerIntermediateAlertmanager shows the alert but Slack receives nothingBeginnerAlertmanager logs `notify retry canceled due to unrecoverable error after 1 attempts: channel_not_found`IntermediateAlertmanager logs `unexpected status code 404: no_service` / `invalid_token` for SlackBeginnerAlerts fire constantly: the same alert re-notifies every 5 minutesBeginner