How do you audit changes to monitoring itself, such as silences and alert rules?
IntermediateProductionObservability as Code, Security & Vendor Choices
Answer
- Rules, routing and dashboards come from Git, so the Git log is the audit trail.
- Silences are the gap: anyone with UI access can mute production. Require a
commentandcreatedBy, keep silences short, and export them withamtool silence query -o jsoninto a log or a Slack channel. Alert on silences that last more than 24 hours or matchseverity="critical"broadly. - Grafana audit logs (Enterprise/Cloud) or the API record dashboard and permission changes.
- Prometheus exposes
prometheus_config_last_reload_success_timestamp_secondsso you can correlate a missing alert with a config change.
More on Observability as Code, Security & Vendor Choices
What does "observability as code" cover, and why insist on it?BeginnerHow 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?Advanced