Maven / GitOps Interview Questions
How do you observe and alert on GitOps sync failures in production?
GitOps operators expose rich telemetry specifically for monitoring sync and reconciliation health. The two main surfaces are Prometheus metrics and the operators' own notification controllers.
Argo CD observability:
- Argo CD exposes Prometheus metrics on port 8082. Key metrics:
argocd_app_info(labels includesync_statusandhealth_status),argocd_app_sync_total{phase="Failed"}, andargocd_app_reconcile_duration_seconds. - The Argo CD Notifications Controller sends alerts based on trigger conditions (SyncFailed, AppOutOfSync, AppDegraded) to Slack, PagerDuty, email, or any webhook — configured via
argocd-notifications-cmConfigMap. argocd app listandargocd app get <name>for CLI-based status checks.
Flux observability:
- Each Flux controller exposes metrics. Key:
gotk_reconcile_error_total(per controller, per object name),gotk_reconcile_duration_seconds,gotk_resource_info(withreadyandsuspendedlabels). flux get allandflux events --watchfor real-time status.- The Flux Notification Controller uses
ProviderandAlertCRs (stored in Git) to route events from any Flux resource type to any webhook or messaging service.
Example Prometheus alert rule for Argo CD:
- alert: ArgoCDAppSyncFailed
expr: increase(argocd_app_sync_total{phase="Failed"}[5m]) > 0
for: 1m
labels:
severity: critical
annotations:
summary: "Argo CD sync failed for app {{ $labels.name }}"
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
