Alert when a Garage node is down
Prometheus already scrapes Garage (job="garage", port 3903) but there was
no alert on up{job="garage"}, so the 2026-12-04 garage-15 outage went
unnoticed for ~1h40m. Add a critical GarageDown alert and ship it via the
cookbook.
This commit is contained in:
4 files changed
+18
-2
No files matched your search
@@ -2,6 +2,11 @@
|
||||
|
||||
This file is used to list changes made in each version of the kosmos_prometheus cookbook.
|
||||
|
||||
## 0.2.0
|
||||
|
||||
- Add a `GarageDown` alert that fires when a Garage metrics target is down,
|
||||
so a dead Garage node pages us instead of going unnoticed.
|
||||
|
||||
## 0.1.0
|
||||
|
||||
Initial release.
|
||||
@@ -81,5 +81,6 @@ node.default["kosmos_prometheus"]["rule_files"] = [
|
||||
]
|
||||
|
||||
node.default["kosmos_prometheus"]["rules"] = [
|
||||
"node_exporter"
|
||||
"node_exporter",
|
||||
"garage"
|
||||
]
|
||||
@@ -0,0 +1,10 @@
|
||||
groups:
|
||||
- name: Garage
|
||||
rules:
|
||||
- alert: GarageDown
|
||||
expr: up{job="garage"} == 0
|
||||
for: 1m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: "Garage node {{ $labels.instance }} is down"
|
||||
@@ -3,7 +3,7 @@ maintainer 'Kosmos Developers'
|
||||
maintainer_email 'mail@kosmos.org'
|
||||
license 'MIT'
|
||||
description 'Installs/Configures prometheus'
|
||||
version '0.1.0'
|
||||
version '0.2.0'
|
||||
chef_version '>= 16.0'
|
||||
|
||||
depends "firewall"
|
||||
|
||||
Reference in new issue
Block a user