Alertmanager logs `unexpected status code 404: no_service` / `invalid_token` for Slack
BeginnerTroubleshootingAlerting and Alertmanager
Answer
Likely causes → The incoming webhook was deleted or rotated, or the Secret has a trailing newline.
Diagnose →
kubectl get secret alertmanager-slack -n monitoring -o jsonpath='{.data.url}' | base64 -d | od -c | tail -2
Fix → Create a new webhook, store it without newline (printf '%s'), reference it via api_url_file.
Prevent → Track webhook ownership; a departing admin can revoke it.
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 fails to load config: `yaml: unmarshal errors: field matchers not found in type config.plain`IntermediateAlerts fire constantly: the same alert re-notifies every 5 minutesBeginner