3 Commits

Author SHA1 Message Date
g4st3r
4f50f70a6e Add disk and memory alerts 2026-03-07 20:45:03 +00:00
g4st3r
8207fa5329 Allow Grafana UI updates for provisioned dashboards 2026-03-07 20:20:08 +00:00
g4st3r
35a3b59098 Add revproxy node-exporter scrape target 2026-03-07 20:14:04 +00:00
3 changed files with 23 additions and 0 deletions

View File

@@ -12,5 +12,6 @@ providers:
type: file type: file
disableDeletion: false disableDeletion: false
editable: true editable: true
allowUiUpdates: true
options: options:
path: /var/lib/grafana/dashboards path: /var/lib/grafana/dashboards

View File

@@ -26,3 +26,7 @@ scrape_configs:
- job_name: smartctl - job_name: smartctl
static_configs: static_configs:
- targets: ["smartctl-exporter:9633"] - targets: ["smartctl-exporter:9633"]
- job_name: revproxy-node
static_configs:
- targets: ["10.8.0.1:9100"]

View File

@@ -36,3 +36,21 @@ groups:
annotations: annotations:
summary: "Disk low on {{ $labels.instance }}" summary: "Disk low on {{ $labels.instance }}"
description: "<10% free on {{ $labels.mountpoint }}" description: "<10% free on {{ $labels.mountpoint }}"
- alert: DiskUsageHigh
expr: (1 - (node_filesystem_avail_bytes{mountpoint="/",fstype!~"tmpfs|overlay"} / node_filesystem_size_bytes{mountpoint="/",fstype!~"tmpfs|overlay"})) > 0.85
for: 15m
labels:
severity: warning
annotations:
summary: "Disk usage >85% on {{ $labels.instance }}"
description: "Root filesystem usage above 85%"
- alert: MemAvailableLow
expr: (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes) < 0.08
for: 10m
labels:
severity: warning
annotations:
summary: "Low available memory on {{ $labels.instance }}"
description: "MemAvailable < 8%"