|
/etc/prometheus/rules/prometheus-k8s-rulefiles-0/monitoring-polardbx-alert-rules.yaml > polardbx-cdc
|
|
|
|
|
|
/etc/prometheus/rules/prometheus-k8s-rulefiles-0/monitoring-polardbx-alert-rules.yaml > polardbx-cn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/etc/prometheus/rules/prometheus-k8s-rulefiles-0/monitoring-polardbx-alert-rules.yaml > polardbx-dn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/etc/prometheus/rules/prometheus-k8s-rulefiles-0/monitoring-polardbx-alert-rules.yaml > polardbx-node-resources
|
|
|
|
|
alert: PolarDB-X Node Disk Usage is High
expr: sum by(instance, mountpoint) ((node_filesystem_size_bytes{fstype=~"ext.*|xfs|nfs",mountpoint!="/boot",mountpoint!~".*pod.*"} - node_filesystem_free_bytes{fstype=~"ext.*|xfs|nfs",mountpoint!="/boot",mountpoint!~".*pod.*"}) / (node_filesystem_avail_bytes{fstype=~"ext.*|xfs|nfs",mountpoint!="/boot",mountpoint!~".*pod.*"} + (node_filesystem_size_bytes{fstype=~"ext.*|xfs|nfs",mountpoint!="/boot",mountpoint!~".*pod.*"} - node_filesystem_free_bytes{fstype=~"ext.*|xfs|nfs",mountpoint!="/boot",mountpoint!~".*pod.*"}))) * 100 >= 80
for: 5m
labels:
severity: warning
annotations:
description: Instance {{ $labels.instance }} mountpoint {{ $labels.mountpoint }} Disk Usage is high, over 80% for 5m.
summary: PolarDB-X-Node Disk Usage is High
|
alert: PolarDB-X Node Disk Usage is Too High
expr: sum by(instance, mountpoint) ((node_filesystem_size_bytes{fstype=~"ext.*|xfs|nfs",mountpoint!="/boot",mountpoint!~".*pod.*"} - node_filesystem_free_bytes{fstype=~"ext.*|xfs|nfs",mountpoint!="/boot",mountpoint!~".*pod.*"}) / (node_filesystem_avail_bytes{fstype=~"ext.*|xfs|nfs",mountpoint!="/boot",mountpoint!~".*pod.*"} + (node_filesystem_size_bytes{fstype=~"ext.*|xfs|nfs",mountpoint!="/boot",mountpoint!~".*pod.*"} - node_filesystem_free_bytes{fstype=~"ext.*|xfs|nfs",mountpoint!="/boot",mountpoint!~".*pod.*"}))) * 100 >= 90
for: 5m
labels:
severity: critical
annotations:
description: Instance {{ $labels.instance }} mountpoint {{ $labels.mountpoint }} Disk Usage is too high, over 90% for 5m.
summary: PolarDB-X-Node Disk Usage is Too High
|
|
|
|
|
|
|
|
|