Monitoring & Alerting
Track security-relevant signals and alert with enough context to act.
BeginnerMonitoringOperations
Where it fits in the lifecycle
- Plan
- Code
- Build
- Test
- Release
- Deploy
- Operate
- Monitor
- Operate Runtime security, secrets rotation and configuration reconciliation.
- Monitor Detection engineering, SIEM, compliance evidence and incident response.
Overview
Security monitoring watches signals such as authentication failure rates, policy violations, certificate expiry and scan coverage, and turns sustained anomalies into actionable alerts.
Why it matters
Controls that silently stop working are worse than no controls, because they create false confidence.
How it works
- 01Metrics are exported from security controls themselves.
- 02Alert rules use sustained thresholds to avoid flapping.
- 03Every alert links to a runbook.
Common tools
PrometheusGrafanaAlertmanagerKubernetesLinuxAWS
Implementation examples
yamlAlert on failed logins
groups: - name: security rules: - alert: HighAuthFailureRate expr: sum(rate(auth_failures_total[5m])) > 5 for: 10m labels: { severity: warning } annotations: runbook: https://runbooks.example.com/auth-failuresBest practices
- Alert on control health, not only on attacks.
- Attach a runbook to every alert.
Common mistakes
- Alerting on raw counts, which flap constantly.