Add Assignment 7 monitoring, tested alerts, and incident evidence
This commit is contained in:
parent
131d605c5e
commit
6605394d7a
@@ -0,0 +1,22 @@
|
||||
# Root capacity below 15 percent
|
||||
Owner: SSW590 Group 7. Severity: warning. Evaluate every 30s; pending 5 minutes.
|
||||
|
||||
Selector: instance node-exporter:9100; mountpoint /; device /dev/vda1; ext4.
|
||||
Query is 100 * available bytes / size bytes for that same filesystem.
|
||||
The 15% threshold leaves operational room for builds, compaction and logs.
|
||||
No-data or evaluation errors enter Alerting and require monitoring diagnosis.
|
||||
|
||||
1. Acknowledge and record times. Compare exporter values to `df -B1 /`.
|
||||
2. Inspect directory usage, Docker images/volumes and logs read-only first.
|
||||
Identify growth and protect Gitea/Jenkins/Grafana/Prometheus persistent data.
|
||||
3. Agree with the team on safe cleanup or retention changes; avoid global
|
||||
Docker pruning and do not delete repositories, service volumes or evidence.
|
||||
4. Restore adequate headroom, verify the metric and wait for rule resolution.
|
||||
5. Record cause, corrective action, delivered notification and recovery time.
|
||||
|
||||
Safe planned test: temporarily raise the free-percentage threshold above the
|
||||
measured current value, wait through the full five-minute pending period and
|
||||
capture real firing/delivery, then restore 15% and verify resolved delivery.
|
||||
Never fill the disk. The October 24 threshold-only test delivered firing and resolved notifications. For file-provisioned rules,
|
||||
change the reviewed provisioning threshold and reload/restart Grafana; retain
|
||||
final 15% configuration. Discord team-alerts is active with resolved notifications enabled.
|
||||
@@ -0,0 +1,25 @@
|
||||
# HTTPS service unavailable
|
||||
Owner: SSW590 Group 7. Severity: critical. Evaluate every 30s; pending 1 minute.
|
||||
|
||||
The rule produces separate instances for Gitea and Jenkins by URL label.
|
||||
Missing expected probe series are explicitly treated as failure; datasource
|
||||
no-data and evaluation errors enter Alerting rather than reporting health.
|
||||
|
||||
1. Acknowledge the alert and record receipt/acknowledgement time.
|
||||
2. Inspect the instance URL and the availability/duration panels. Check collection
|
||||
health and exporter logs to distinguish probe failure from broken monitoring.
|
||||
3. Check DNS, valid TLS, expected response and redirects from the monitoring network.
|
||||
Never disable certificate verification to clear an alert.
|
||||
4. Inspect the affected container status/logs, Caddy routing, resource pressure,
|
||||
and recent changes. Confirm the actual cause before restarting anything.
|
||||
5. For the planned Jenkins-only exercise, restore using:
|
||||
`cd /home/codex/myfileagent-gitea && docker compose -f compose.yaml -f compose.jenkins.yaml start jenkins`
|
||||
Verify the live Compose service remains named jenkins before running it.
|
||||
Do not stop the Droplet, Gitea or monitoring; never delete service volumes.
|
||||
6. Verify HTTPS probe success, a normal Jenkins pipeline, webhook/status and
|
||||
Gitea manual build as applicable. Record first success and resolved notification.
|
||||
7. Escalate unresolved faults to the other team member; capture impact/timeline
|
||||
and corrective actions. A complete Droplet failure can also stop these alerts.
|
||||
|
||||
Discord team-alerts is the active route; resolved notifications are enabled.
|
||||
Scrape 30s, evaluation 30s, pending 1m, group wait 10s, group interval 1m and repeat 4h contribute delay. The approved October 24 exercise delivered firing and resolved notifications; see ../incidents/2026-10-24-jenkins-outage.md. Do not repeat an outage without team approval.
|
||||
Reference in New Issue
Block a user