- prometheus {
- rotate_interval = 10
- server = "http://nasi.dublin:9090"
- fields = [
- {
- "q": "probe_success < avg_over_time(probe_success[2h])",
- "fmt": "? %(job)s %(instance)s ?",
- "color": "bad",
- },
- {
- "sub": [
- {
- "q": "sum(inverter_watts{job='solar'})",
- "units": {"unit": "W", "si": True},
- },
- {
- "q": "sum(max_over_time(inverter_day_kwh{job='solar'}[1h])) * 1000",
- "units": {"unit": "Wh", "si": True},
- }
- ],
- "fmt": "? %(0.v)s, %(1.v)s",
- },
- {
- "sub": [
- {
- "q": "temperature_C{channel='1'}",
- },
- {
- "q": "max_over_time(wind_max_m_s[2m]) * 3.6",
- }
- ],
- "fmt": "?️ %(0.v).1f°C ? %(1.v)d",
- },
- {
- "sub": [
- {
- "q": "num_planes{job='dump1090'}",
- },
- {
- "q": "dist_max{job='dump1090'}",
- },
- ],
- "fmt": "%(location)s ✈️ %(0.v)d (%(1.v)dkm)",
- #"join": ", ",
- },
- {
- "sub": [
- {
- "q": "ceph_cluster_total_used_raw_bytes",
- "units": {"unit": "B", "optimal": 3},
- },
- {
- "q": "ceph_cluster_total_bytes",
- "units": {"unit": "B", "optimal": 3},
- },
- {
- "q": "(ceph_cluster_total_used_raw_bytes / ceph_cluster_total_bytes * 100) > 8",
- },
- ],
- "fmt": "Ceph %(2.v)d%% (%(0.v)s/%(1.v)s)",
- },
- ]
- }