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.
More on Observability as Code, Security & Vendor Choices
How do you manage Grafana with Terraform?IntermediateHow do you validate Alertmanager configuration in CI?BeginnerWhat does a CI pipeline for Prometheus rules look like?IntermediateRaw dashboard JSON, Jsonnet/Grafonnet or the Grafana Foundation SDK: which do you pick?AdvancedWhat are monitoring mixins and how do you consume them?AdvancedHow do Grafana dashboards get loaded automatically in `kube-prometheus-stack`?Beginner