Interview Prep/Monitoring & Observability/Observability as Code, Security & Vendor Choices

What does "observability as code" cover, and why insist on it?

BeginnerProductionObservability as Code, Security & Vendor Choices
Answer

Everything that defines what we see and who gets woken up lives in Git and is deployed by a pipeline: scrape configs (ServiceMonitor, PodMonitor, Probe), recording and alert rules (PrometheusRule), Alertmanager routing, Grafana dashboards, data sources, folders and contact points, collector and agent configs, and SLO definitions.

Why: changes are reviewed, tested (promtool, amtool), versioned and reproducible in a new cluster. ClickOps dashboards and alerts drift, get deleted by accident, and nobody knows who changed the threshold at 2 a.m. In Grafana we disable editing of provisioned dashboards in production so the UI cannot diverge from Git.

All Monitoring & Observability questions

More on Observability as Code, Security & Vendor Choices