From 57ca61c68e2a2d9c9b8537795881346ae9d51c9f Mon Sep 17 00:00:00 2001 From: nyyu Date: Fri, 18 Apr 2025 07:32:00 +0200 Subject: [PATCH] chore: conf --- conf/prometheus/alerts/node-exporter.yml | 4 ++-- docker-compose.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/prometheus/alerts/node-exporter.yml b/conf/prometheus/alerts/node-exporter.yml index d52b34d..8a9eeb0 100644 --- a/conf/prometheus/alerts/node-exporter.yml +++ b/conf/prometheus/alerts/node-exporter.yml @@ -59,13 +59,13 @@ groups: description: "Disk is too busy (IO wait > 80%)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" - alert: HostOutOfDiskSpace - expr: '(node_filesystem_avail_bytes{fstype!~"^(fuse.*|tmpfs|cifs|nfs)"} / node_filesystem_size_bytes < .10 and on (instance, device, mountpoint) node_filesystem_readonly == 0)' + expr: '(node_filesystem_avail_bytes{fstype!~"^(fuse.*|tmpfs|cifs|nfs|nfs4)"} / node_filesystem_size_bytes < .5 and on (instance, device, mountpoint) node_filesystem_readonly == 0)' for: 2m labels: severity: critical annotations: summary: Host out of disk space (instance {{ $labels.instance }}) - description: "Disk is almost full (< 10% left)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" + description: "Disk is almost full (< 5% left)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" - alert: HostDiskMayFillIn24Hours expr: 'predict_linear(node_filesystem_avail_bytes{fstype!~"^(fuse.*|tmpfs|cifs|nfs)"}[1h], 86400) <= 0 and node_filesystem_avail_bytes > 0' diff --git a/docker-compose.yml b/docker-compose.yml index 9248ac7..e46ea2a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -52,6 +52,7 @@ services: - '--config.file=/etc/prometheus/prometheus.yml' - '--storage.tsdb.path=/prometheus' - '--storage.tsdb.retention.time=120d' + - '--storage.tsdb.wal-compression-type=zstd' - '--web.console.libraries=/etc/prometheus/console_libraries' - '--web.console.templates=/etc/prometheus/consoles' - '--web.enable-lifecycle'