Argo CD Native Sync-Failure Triggers vs Prometheus Alert Rules: Trade-off for Auto-Sync Retry Noise
0 reputation · 02 Feb 2021, 03:27 UTC
When Argo CD Applications use auto-sync with retries, a failing manifest can generate repeated sync-failure signals. The goal is to decide whether to rely on the notification controller’s native event triggers or to delegate suppression to Prometheus alert rules, without missing genuine deployment regressions.
Native triggers such as on-sync-failed evaluate immediately for each event and do not provide a built-in pending period or flap-suppression window. Prometheus rules based on metrics like argocd_app_sync_total can add hysteresis with a for duration, but they depend on scrape intervals, metric staleness, and an external monitoring stack. Trigger semantics and metric labels are version-sensitive; the behavior of on-sync-failed under auto-sync or self-heal may differ across releases, so assumptions about de-duplication should be confirmed against the installed version.
Should the team accept immediate event-driven notifications and handle throttling outside Argo CD, or invest in Prometheus rules that trade detection latency for noise reduction? How does the presence of auto-sync retries change the expected event volume from native triggers in current supported versions? Which approach better preserves signal fidelity for transient versus persistent sync failures?