mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 19:37:27 +08:00
add zfs_exporter rules
This commit is contained in:
parent
c70a35595f
commit
767ef2496b
1 changed files with 24 additions and 0 deletions
|
|
@ -2080,6 +2080,30 @@ groups:
|
||||||
query: 'node_zfs_zpool_state{state!="online"} > 0'
|
query: 'node_zfs_zpool_state{state!="online"} > 0'
|
||||||
severity: critical
|
severity: critical
|
||||||
for: 1m
|
for: 1m
|
||||||
|
- name: ZFS exporter
|
||||||
|
slug: zfs_exporter
|
||||||
|
doc_url: https://github.com/pdf/zfs_exporter
|
||||||
|
rules:
|
||||||
|
- name: ZFS pool out of space
|
||||||
|
description: Disk is almost full (< 10% left)
|
||||||
|
query: 'zfs_pool_free_bytes * 100 / zfs_pool_size_bytes < 10 and ON (instance, device, mountpoint) zfs_pool_readonly == 0'
|
||||||
|
severity: warning
|
||||||
|
- name: ZFS pool unhealthy
|
||||||
|
description: ZFS pool state is {{ $value }}. See comments for more information.
|
||||||
|
query: 'zfs_pool_health > 0'
|
||||||
|
severity: critical
|
||||||
|
comments: |
|
||||||
|
0: ONLINE
|
||||||
|
1: DEGRADED
|
||||||
|
2: FAULTED
|
||||||
|
3: OFFLINE
|
||||||
|
4: UNAVAIL
|
||||||
|
5: REMOVED
|
||||||
|
6: SUSPENDED
|
||||||
|
- name: ZFS collector failed
|
||||||
|
description: ZFS collector for {{ $labels.instance }} has failed to collect information
|
||||||
|
query: 'zfs_scrape_collector_success != 1'
|
||||||
|
severity: warning
|
||||||
|
|
||||||
- name: OpenEBS
|
- name: OpenEBS
|
||||||
exporters:
|
exporters:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue