2019-04-15 13:35:09 +00:00
groups :
- name : cluster health
rules :
2021-11-03 02:24:20 +00:00
- alert : CephHealthError
2019-04-15 13:35:09 +00:00
expr : ceph_health_status == 2
for : 5m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .2 .1
2019-04-15 13:35:09 +00:00
annotations :
2022-07-26 16:06:27 +00:00
summary : Cluster is in the ERROR state
2020-01-23 11:52:24 +00:00
description : >
2022-07-26 16:06:27 +00:00
The cluster state has been HEALTH_ERROR for more than 5 minutes.
2020-01-23 11:52:24 +00:00
Please check "ceph health detail" for more information.
2021-11-03 02:24:20 +00:00
- alert : CephHealthWarning
2019-04-15 13:35:09 +00:00
expr : ceph_health_status == 1
for : 15m
labels :
severity : warning
type : ceph_default
annotations :
2022-07-26 16:06:27 +00:00
summary : Cluster is in the WARNING state
2020-01-23 11:52:24 +00:00
description : >
2022-07-26 16:06:27 +00:00
The cluster state has been HEALTH_WARN for more than 15 minutes.
2020-01-23 11:52:24 +00:00
Please check "ceph health detail" for more information.
2019-04-15 13:35:09 +00:00
- name : mon
rules :
2021-11-03 02:24:20 +00:00
- alert : CephMonDownQuorumAtRisk
2021-09-16 23:24:29 +00:00
expr : ((ceph_health_detail{name="MON_DOWN"} == 1) * on() (count(ceph_mon_quorum_status == 1) == bool (floor(count(ceph_mon_metadata) / 2) + 1))) == 1
for : 30s
2019-04-15 13:35:09 +00:00
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .3 .1
2019-04-15 13:35:09 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#mon-down
2021-11-03 02:24:20 +00:00
summary : Monitor quorum is at risk
2020-01-23 11:52:24 +00:00
description : |
2021-09-16 23:24:29 +00:00
{{ $min := query "floor(count(ceph_mon_metadata) / 2) +1" | first | value }}Quorum requires a majority of monitors (x {{ $min }}) to be active
2022-07-26 16:06:27 +00:00
Without quorum the cluster will become inoperable, affecting all services and connected clients.
2020-01-23 11:52:24 +00:00
2021-09-16 23:24:29 +00:00
The following monitors are down :
{{- range query "(ceph_mon_quorum_status == 0) + on(ceph_daemon) group_left(hostname) (ceph_mon_metadata * 0)" }}
- {{ .Labels.ceph_daemon }} on {{ .Labels.hostname }}
{{- end }}
2021-11-03 02:24:20 +00:00
- alert : CephMonDown
2021-09-16 23:24:29 +00:00
expr : (count(ceph_mon_quorum_status == 0) <= (count(ceph_mon_metadata) - floor(count(ceph_mon_metadata) / 2) + 1))
for : 30s
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#mon-down
2022-07-26 16:06:27 +00:00
summary : One or more monitors down
2021-09-16 23:24:29 +00:00
description : |
{{ $down := query "count(ceph_mon_quorum_status == 0)" | first | value }}{{ $s := "" }}{{ if gt $down 1.0 }}{{ $s = "s" }}{{ end }}You have {{ $down }} monitor{{ $s }} down.
2022-07-26 16:06:27 +00:00
Quorum is still intact, but the loss of an additional monitor will make your cluster inoperable.
2020-01-23 11:52:24 +00:00
The following monitors are down :
{{- range query "(ceph_mon_quorum_status == 0) + on(ceph_daemon) group_left(hostname) (ceph_mon_metadata * 0)" }}
- {{ .Labels.ceph_daemon }} on {{ .Labels.hostname }}
{{- end }}
2021-11-03 02:24:20 +00:00
- alert : CephMonDiskspaceCritical
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="MON_DISK_CRIT"} == 1
for : 1m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .3 .2
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#mon-disk-crit
2022-07-26 16:06:27 +00:00
summary : Filesystem space on at least one monitor is critically low
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
The free space available to a monitor's store is critically low.
You should increase the space available to the monitor(s). The default directory
is /var/lib/ceph/mon-*/data/store.db on traditional deployments,
and /var/lib/rook/mon-*/data/store.db on the mon pod's worker node for Rook.
Look for old, rotated versions of *.log and MANIFEST*. Do NOT touch any *.sst files.
Also check any other directories under /var/lib/rook and other directories on the
same filesystem, often /var/log and /var/tmp are culprits. Your monitor hosts are;
2021-09-16 23:24:29 +00:00
{{- range query "ceph_mon_metadata"}}
- {{ .Labels.hostname }}
{{- end }}
2021-11-03 02:24:20 +00:00
- alert : CephMonDiskspaceLow
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="MON_DISK_LOW"} == 1
for : 5m
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#mon-disk-low
2021-11-03 02:24:20 +00:00
summary : Disk space on at least one monitor is approaching full
2021-09-16 23:24:29 +00:00
description : |
The space available to a monitor's store is approaching full (>70% is the default).
2022-07-26 16:06:27 +00:00
You should increase the space available to the monitor(s). The default directory
is /var/lib/ceph/mon-*/data/store.db on traditional deployments,
and /var/lib/rook/mon-*/data/store.db on the mon pod's worker node for Rook.
Look for old, rotated versions of *.log and MANIFEST*. Do NOT touch any *.sst files.
Also check any other directories under /var/lib/rook and other directories on the
same filesystem, often /var/log and /var/tmp are culprits. Your monitor hosts are;
2021-09-16 23:24:29 +00:00
{{- range query "ceph_mon_metadata"}}
- {{ .Labels.hostname }}
{{- end }}
2021-11-03 02:24:20 +00:00
- alert : CephMonClockSkew
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="MON_CLOCK_SKEW"} == 1
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#mon-clock-skew
2022-07-26 16:06:27 +00:00
summary : Clock skew detected among monitors
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
Ceph monitors rely on closely synchronized time to maintain
quorum and cluster consistency. This event indicates that the time on at least
one mon has drifted too far from the lead mon.
2021-09-16 23:24:29 +00:00
2022-07-26 16:06:27 +00:00
Review cluster status with ceph -s. This will show which monitors
are affected. Check the time sync status on each monitor host with
"ceph time-sync-status" and the state and peers of your ntpd or chrony daemon.
2020-01-23 11:52:24 +00:00
2019-04-15 13:35:09 +00:00
- name : osd
rules :
2021-11-03 02:24:20 +00:00
- alert : CephOSDDownHigh
2020-04-30 08:50:07 +00:00
expr : count(ceph_osd_up == 0) / count(ceph_osd_up) * 100 >= 10
2019-04-15 13:35:09 +00:00
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .4 .1
2019-04-15 13:35:09 +00:00
annotations :
2021-11-03 02:24:20 +00:00
summary : More than 10% of OSDs are down
2020-01-23 11:52:24 +00:00
description : |
2021-11-03 02:24:20 +00:00
{{ $value | humanize }}% or {{ with query "count(ceph_osd_up == 0)" }}{{ . | first | value }}{{ end }} of {{ with query "count(ceph_osd_up)" }}{{ . | first | value }}{{ end }} OSDs are down (>= 10%).
2020-01-23 11:52:24 +00:00
The following OSDs are down :
{{- range query "(ceph_osd_up * on(ceph_daemon) group_left(hostname) ceph_osd_metadata) == 0" }}
- {{ .Labels.ceph_daemon }} on {{ .Labels.hostname }}
{{- end }}
2021-11-03 02:24:20 +00:00
- alert : CephOSDHostDown
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="OSD_HOST_DOWN"} == 1
for : 5m
labels :
severity : warning
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .4 .8
2021-09-16 23:24:29 +00:00
annotations :
2021-11-03 02:24:20 +00:00
summary : An OSD host is offline
2021-09-16 23:24:29 +00:00
description : |
The following OSDs are down :
{{- range query "(ceph_osd_up * on(ceph_daemon) group_left(hostname) ceph_osd_metadata) == 0" }}
- {{ .Labels.hostname }} : {{ .Labels.ceph_daemon }}
{{- end }}
2021-11-03 02:24:20 +00:00
- alert : CephOSDDown
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="OSD_DOWN"} == 1
for : 5m
2019-04-15 13:35:09 +00:00
labels :
severity : warning
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .4 .2
2019-04-15 13:35:09 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#osd-down
2022-07-26 16:06:27 +00:00
summary : An OSD has been marked down
2020-01-23 11:52:24 +00:00
description : |
2021-09-16 23:24:29 +00:00
{{ $num := query "count(ceph_osd_up == 0)" | first | value }}{{ $s := "" }}{{ if gt $num 1.0 }}{{ $s = "s" }}{{ end }}{{ $num }} OSD{{ $s }} down for over 5mins.
2020-01-23 11:52:24 +00:00
The following OSD{{ $s }} {{ if eq $s "" }}is{{ else }}are{{ end }} down:
{{- range query "(ceph_osd_up * on(ceph_daemon) group_left(hostname) ceph_osd_metadata) == 0"}}
2021-09-16 23:24:29 +00:00
- {{ .Labels.ceph_daemon }} on {{ .Labels.hostname }}
2020-01-23 11:52:24 +00:00
{{- end }}
2021-11-03 02:24:20 +00:00
- alert : CephOSDNearFull
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="OSD_NEARFULL"} == 1
2019-11-18 11:39:27 +00:00
for : 5m
2019-04-15 13:35:09 +00:00
labels :
2021-09-16 23:24:29 +00:00
severity : warning
2019-04-15 13:35:09 +00:00
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .4 .3
2019-04-15 13:35:09 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#osd-nearfull
2021-11-03 02:24:20 +00:00
summary : OSD(s) running low on free space (NEARFULL)
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
One or more OSDs have reached the NEARFULL threshold
2021-09-16 23:24:29 +00:00
2022-07-26 16:06:27 +00:00
Use 'ceph health detail' and 'ceph osd df' to identify the problem.
To resolve, add capacity to the affected OSD's failure domain, restore down/out OSDs, or delete unwanted data.
2021-11-03 02:24:20 +00:00
- alert : CephOSDFull
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="OSD_FULL"} > 0
for : 1m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .4 .6
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#osd-full
2022-07-26 16:06:27 +00:00
summary : OSD full, writes blocked
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
An OSD has reached the FULL threshold. Writes to pools that share the
2021-09-16 23:24:29 +00:00
affected OSD will be blocked.
2022-07-26 16:06:27 +00:00
Use 'ceph health detail' and 'ceph osd df' to identify the problem.
To resolve, add capacity to the affected OSD's failure domain, restore down/out OSDs, or delete unwanted data.
2021-11-03 02:24:20 +00:00
- alert : CephOSDBackfillFull
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="OSD_BACKFILLFULL"} > 0
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#osd-backfillfull
2021-11-03 02:24:20 +00:00
summary : OSD(s) too full for backfill operations
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
An OSD has reached the BACKFILL FULL threshold. This will prevent rebalance operations
from completing.
Use 'ceph health detail' and 'ceph osd df' to identify the problem.
2020-01-23 11:52:24 +00:00
2022-07-26 16:06:27 +00:00
To resolve, add capacity to the affected OSD's failure domain, restore down/out OSDs, or delete unwanted data.
2021-11-03 02:24:20 +00:00
- alert : CephOSDTooManyRepairs
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="OSD_TOO_MANY_REPAIRS"} == 1
for : 30s
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#osd-too-many-repairs
2022-07-26 16:06:27 +00:00
summary : OSD reports a high number of read errors
2021-09-16 23:24:29 +00:00
description : |
Reads from an OSD have used a secondary PG to return data to the client, indicating
a potential failing disk.
2021-11-03 02:24:20 +00:00
- alert : CephOSDTimeoutsPublicNetwork
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="OSD_SLOW_PING_TIME_FRONT"} == 1
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
2021-11-03 02:24:20 +00:00
summary : Network issues delaying OSD heartbeats (public network)
2021-09-16 23:24:29 +00:00
description : |
OSD heartbeats on the cluster's 'public' network (frontend) are running slow. Investigate the network
2022-07-26 16:06:27 +00:00
for latency or loss issues. Use 'ceph health detail' to show the affected OSDs.
2021-11-03 02:24:20 +00:00
- alert : CephOSDTimeoutsClusterNetwork
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="OSD_SLOW_PING_TIME_BACK"} == 1
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
2021-11-03 02:24:20 +00:00
summary : Network issues delaying OSD heartbeats (cluster network)
2021-09-16 23:24:29 +00:00
description : |
OSD heartbeats on the cluster's 'cluster' network (backend) are running slow. Investigate the network
2022-07-26 16:06:27 +00:00
for latency or loss issues. Use 'ceph health detail' to show the affected OSDs.
2021-11-03 02:24:20 +00:00
- alert : CephOSDInternalDiskSizeMismatch
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="BLUESTORE_DISK_SIZE_MISMATCH"} == 1
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#bluestore-disk-size-mismatch
2021-11-03 02:24:20 +00:00
summary : OSD size inconsistency error
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
One or more OSDs have an internal inconsistency between metadata and the size of the device.
This could lead to the OSD(s) crashing in future. You should redeploy the affected OSDs.
2021-11-03 02:24:20 +00:00
- alert : CephDeviceFailurePredicted
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="DEVICE_HEALTH"} == 1
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#id2
2022-07-26 16:06:27 +00:00
summary : Device(s) predicted to fail soon
2021-09-16 23:24:29 +00:00
description : |
The device health module has determined that one or more devices will fail
2022-07-26 16:06:27 +00:00
soon. To review device status use 'ceph device ls'. To show a specific
2021-09-16 23:24:29 +00:00
device use 'ceph device info <dev id>'.
2022-07-26 16:06:27 +00:00
Mark the OSD out so that data may migrate to other OSDs. Once
the OSD has drained, destroy the OSD, replace the device, and redeploy the OSD.
2021-11-03 02:24:20 +00:00
- alert : CephDeviceFailurePredictionTooHigh
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="DEVICE_HEALTH_TOOMANY"} == 1
for : 1m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .4 .7
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#device-health-toomany
2022-07-26 16:06:27 +00:00
summary : Too many devices are predicted to fail, unable to resolve
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
The device health module has determined that devices predicted to
fail can not be remediated automatically, since too many OSDs would be removed from
the cluster to ensure performance and availabililty. Prevent data
integrity issues by adding new OSDs so that data may be relocated.
2021-11-03 02:24:20 +00:00
- alert : CephDeviceFailureRelocationIncomplete
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="DEVICE_HEALTH_IN_USE"} == 1
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#device-health-in-use
2022-07-26 16:06:27 +00:00
summary : Device failure is predicted, but unable to relocate data
2021-09-16 23:24:29 +00:00
description : |
The device health module has determined that one or more devices will fail
soon, but the normal process of relocating the data on the device to other
OSDs in the cluster is blocked.
2022-07-26 16:06:27 +00:00
Ensure that the cluster has available free space. It may be necessary to add
capacity to the cluster to allow data from the failing device to
successfully migrate, or to enable the balancer.
2021-09-16 23:24:29 +00:00
2021-11-03 02:24:20 +00:00
- alert : CephOSDFlapping
2020-01-23 11:52:24 +00:00
expr : |
(
rate(ceph_osd_up[5m])
* on (ceph_daemon) group_left(hostname) ceph_osd_metadata
) * 60 > 1
2019-04-15 13:35:09 +00:00
labels :
severity : warning
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .4 .4
2019-04-15 13:35:09 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/troubleshooting/troubleshooting-osd#flapping-osds
2022-07-26 16:06:27 +00:00
summary : Network issues are causing OSDs to flap (mark each other down)
2019-04-15 13:35:09 +00:00
description : >
2020-01-23 11:52:24 +00:00
OSD {{ $labels.ceph_daemon }} on {{ $labels.hostname }} was
2022-07-26 16:06:27 +00:00
marked down and back up {{ $value | humanize }} times once a
minute for 5 minutes. This may indicate a network issue (latency,
packet loss, MTU mismatch) on the cluster network, or the public network if no cluster network
is deployed. Check the network stats on the listed host(s).
2020-01-23 11:52:24 +00:00
2021-11-03 02:24:20 +00:00
- alert : CephOSDReadErrors
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="BLUESTORE_SPURIOUS_READ_ERRORS"} == 1
for : 30s
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#bluestore-spurious-read-errors
2021-11-03 02:24:20 +00:00
summary : Device read errors detected
2021-09-16 23:24:29 +00:00
description : >
An OSD has encountered read errors, but the OSD has recovered by retrying
2022-07-26 16:06:27 +00:00
the reads. This may indicate an issue with hardware or the kernel.
2019-04-15 13:35:09 +00:00
# alert on high deviation from average PG count
2021-11-03 02:24:20 +00:00
- alert : CephPGImbalance
2020-01-23 11:52:24 +00:00
expr : |
abs(
(
(ceph_osd_numpg > 0) - on (job) group_left avg(ceph_osd_numpg > 0) by (job)
) / on (job) group_left avg(ceph_osd_numpg > 0) by (job)
2022-07-26 16:06:27 +00:00
) * on (ceph_daemon) group_left(hostname) ceph_osd_metadata > 0.30
2019-04-15 13:35:09 +00:00
for : 5m
labels :
severity : warning
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .4 .5
2019-04-15 13:35:09 +00:00
annotations :
2022-07-26 16:06:27 +00:00
summary : PGs are not balanced across OSDs
2019-04-15 13:35:09 +00:00
description : >
2020-01-23 11:52:24 +00:00
OSD {{ $labels.ceph_daemon }} on {{ $labels.hostname }} deviates
by more than 30% from average PG count.
2019-04-15 13:35:09 +00:00
# alert on high commit latency...but how high is too high
2021-09-16 23:24:29 +00:00
2019-04-15 13:35:09 +00:00
- name : mds
rules :
2021-11-03 02:24:20 +00:00
- alert : CephFilesystemDamaged
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="MDS_DAMAGE"} > 0
for : 1m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .5 .1
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/cephfs/health-messages#cephfs-health-messages
2022-07-26 16:06:27 +00:00
summary : CephFS filesystem is damaged.
2021-09-16 23:24:29 +00:00
description : >
2022-07-26 16:06:27 +00:00
Filesystem metadata has been corrupted. Data may be inaccessible.
Analyze metrics from the MDS daemon admin socket, or
escalate to support.
2021-11-03 02:24:20 +00:00
- alert : CephFilesystemOffline
expr : ceph_health_detail{name="MDS_ALL_DOWN"} > 0
for : 1m
labels :
severity : critical
type : ceph_default
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .5 .3
annotations :
documentation : https://docs.ceph.com/en/latest/cephfs/health-messages/#mds-all-down
2022-07-26 16:06:27 +00:00
summary : CephFS filesystem is offline
2021-11-03 02:24:20 +00:00
description : >
2022-07-26 16:06:27 +00:00
All MDS ranks are unavailable. The MDS daemons managing metadata
are down, rendering the filesystem offline.
2021-11-03 02:24:20 +00:00
- alert : CephFilesystemDegraded
expr : ceph_health_detail{name="FS_DEGRADED"} > 0
for : 1m
labels :
severity : critical
type : ceph_default
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .5 .4
annotations :
documentation : https://docs.ceph.com/en/latest/cephfs/health-messages/#fs-degraded
2022-07-26 16:06:27 +00:00
summary : CephFS filesystem is degraded
2021-11-03 02:24:20 +00:00
description : >
2022-03-04 17:42:02 +00:00
One or more metadata daemons (MDS ranks) are failed or in a
2021-11-03 02:24:20 +00:00
damaged state. At best the filesystem is partially available,
2022-07-26 16:06:27 +00:00
at worst the filesystem is completely unusable.
2021-11-03 02:24:20 +00:00
- alert : CephFilesystemMDSRanksLow
expr : ceph_health_detail{name="MDS_UP_LESS_THAN_MAX"} > 0
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
documentation : https://docs.ceph.com/en/latest/cephfs/health-messages/#mds-up-less-than-max
summary : Ceph MDS daemon count is lower than configured
description : >
2022-07-26 16:06:27 +00:00
The filesystem's "max_mds" setting defines the number of MDS ranks in
2021-11-03 02:24:20 +00:00
the filesystem. The current number of active MDS daemons is less than
2022-07-26 16:06:27 +00:00
this value.
2021-11-03 02:24:20 +00:00
- alert : CephFilesystemInsufficientStandby
expr : ceph_health_detail{name="MDS_INSUFFICIENT_STANDBY"} > 0
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
documentation : https://docs.ceph.com/en/latest/cephfs/health-messages/#mds-insufficient-standby
2022-07-26 16:06:27 +00:00
summary : Ceph filesystem standby daemons too few
2021-11-03 02:24:20 +00:00
description : >
2022-07-26 16:06:27 +00:00
The minimum number of standby daemons required by standby_count_wanted
is less than the current number of standby daemons. Adjust the standby count
or increase the number of MDS daemons.
2021-11-03 02:24:20 +00:00
- alert : CephFilesystemFailureNoStandby
expr : ceph_health_detail{name="FS_WITH_FAILED_MDS"} > 0
for : 1m
labels :
severity : critical
type : ceph_default
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .5 .5
annotations :
documentation : https://docs.ceph.com/en/latest/cephfs/health-messages/#fs-with-failed-mds
2022-07-26 16:06:27 +00:00
summary : MDS daemon failed, no further standby available
2021-11-03 02:24:20 +00:00
description : >
2022-07-26 16:06:27 +00:00
An MDS daemon has failed, leaving only one active rank and no
available standby. Investigate the cause of the failure or add a
standby MDS.
2021-11-03 02:24:20 +00:00
- alert : CephFilesystemReadOnly
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="MDS_HEALTH_READ_ONLY"} > 0
for : 1m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .5 .2
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/cephfs/health-messages#cephfs-health-messages
2022-07-26 16:06:27 +00:00
summary : CephFS filesystem in read only mode due to write error(s)
2021-09-16 23:24:29 +00:00
description : >
The filesystem has switched to READ ONLY due to an unexpected
2022-07-26 16:06:27 +00:00
error when writing to the metadata pool.
2021-09-16 23:24:29 +00:00
2022-07-26 16:06:27 +00:00
Either analyze the output from the MDS daemon admin socket, or
escalate to support.
2021-09-16 23:24:29 +00:00
2019-04-15 13:35:09 +00:00
- name : mgr
rules :
2021-11-03 02:24:20 +00:00
- alert : CephMgrModuleCrash
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="RECENT_MGR_MODULE_CRASH"} == 1
for : 5m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .6 .1
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#recent-mgr-module-crash
2022-07-26 16:06:27 +00:00
summary : A manager module has recently crashed
2021-09-16 23:24:29 +00:00
description : >
2022-07-26 16:06:27 +00:00
One or more mgr modules have crashed and have yet to be acknowledged by an administrator. A
crashed module may impact functionality within the cluster. Use the 'ceph crash' command to
determine which module has failed, and archive it to acknowledge the failure.
2021-11-03 02:24:20 +00:00
- alert : CephMgrPrometheusModuleInactive
2021-09-16 23:24:29 +00:00
expr : up{job="ceph"} == 0
for : 1m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .6 .2
2021-09-16 23:24:29 +00:00
annotations :
2022-07-26 16:06:27 +00:00
summary : The mgr/prometheus module is not available
2021-09-16 23:24:29 +00:00
description : >
The mgr/prometheus module at {{ $labels.instance }} is unreachable. This
2022-07-26 16:06:27 +00:00
could mean that the module has been disabled or the mgr daemon itself is down.
2021-09-16 23:24:29 +00:00
Without the mgr/prometheus module metrics and alerts will no longer
2022-07-26 16:06:27 +00:00
function. Open a shell to an admin node or toolbox pod and use 'ceph -s' to to determine whether the
mgr is active. If the mgr is not active, restart it, otherwise you can determine
module status with 'ceph mgr module ls'. If it is
not listed as enabled, enable it with 'ceph mgr module enable prometheus'.
2021-09-16 23:24:29 +00:00
2019-04-15 13:35:09 +00:00
- name : pgs
rules :
2021-11-03 02:24:20 +00:00
- alert : CephPGsInactive
2020-01-21 10:44:50 +00:00
expr : ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_total - ceph_pg_active) > 0
2019-04-15 13:35:09 +00:00
for : 5m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .7 .1
2019-04-15 13:35:09 +00:00
annotations :
2022-07-26 16:06:27 +00:00
summary : One or more placement groups are inactive
2020-01-23 11:52:24 +00:00
description : >
2020-01-21 10:44:50 +00:00
{{ $value }} PGs have been inactive for more than 5 minutes in pool {{ $labels.name }}.
2022-07-26 16:06:27 +00:00
Inactive placement groups are not able to serve read/write requests.
2021-11-03 02:24:20 +00:00
- alert : CephPGsUnclean
2020-01-21 10:44:50 +00:00
expr : ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_total - ceph_pg_clean) > 0
2019-04-15 13:35:09 +00:00
for : 15m
labels :
severity : warning
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .7 .2
2019-04-15 13:35:09 +00:00
annotations :
2022-07-26 16:06:27 +00:00
summary : One or more placement groups are marked unclean
2020-01-23 11:52:24 +00:00
description : >
2022-07-26 16:06:27 +00:00
{{ $value }} PGs have been unclean for more than 15 minutes in pool {{ $labels.name }}.
Unclean PGs have not recovered from a previous failure.
2021-11-03 02:24:20 +00:00
- alert : CephPGsDamaged
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name=~"PG_DAMAGED|OSD_SCRUB_ERRORS"} == 1
for : 5m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .7 .4
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#pg-damaged
2021-11-03 02:24:20 +00:00
summary : Placement group damaged, manual intervention needed
2021-09-16 23:24:29 +00:00
description : >
During data consistency checks (scrub), at least one PG has been flagged as being
damaged or inconsistent.
2022-03-04 17:42:02 +00:00
Check to see which PG is affected, and attempt a manual repair if necessary. To list
2021-09-16 23:24:29 +00:00
problematic placement groups, use 'rados list-inconsistent-pg <pool>'. To repair PGs use
the 'ceph pg repair <pg_num>' command.
2021-11-03 02:24:20 +00:00
- alert : CephPGRecoveryAtRisk
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="PG_RECOVERY_FULL"} == 1
for : 1m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .7 .5
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#pg-recovery-full
2022-07-26 16:06:27 +00:00
summary : OSDs are too full for recovery
2021-09-16 23:24:29 +00:00
description : >
2022-07-26 16:06:27 +00:00
Data redundancy is at risk since one or more OSDs are at or above the
'full' threshold. Add more capacity to the cluster, restore down/out OSDs, or delete unwanted data.
2021-11-03 02:24:20 +00:00
- alert : CephPGUnavilableBlockingIO
2021-09-16 23:24:29 +00:00
# PG_AVAILABILITY, but an OSD is not in a DOWN state
expr : ((ceph_health_detail{name="PG_AVAILABILITY"} == 1) - scalar(ceph_health_detail{name="OSD_DOWN"})) == 1
for : 1m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .7 .3
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#pg-availability
2022-07-26 16:06:27 +00:00
summary : PG is unavailable, blocking I/O
2021-09-16 23:24:29 +00:00
description : >
2022-07-26 16:06:27 +00:00
Data availability is reduced, impacting the cluster's ability to service I/O. One or
more placement groups (PGs) are in a state that blocks I/O.
2021-11-03 02:24:20 +00:00
- alert : CephPGBackfillAtRisk
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="PG_BACKFILL_FULL"} == 1
for : 1m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .7 .6
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#pg-backfill-full
2022-07-26 16:06:27 +00:00
summary : Backfill operations are blocked due to lack of free space
2021-09-16 23:24:29 +00:00
description : >
Data redundancy may be at risk due to lack of free space within the cluster. One or more OSDs
2022-07-26 16:06:27 +00:00
have reached the 'backfillfull' threshold. Add more capacity, or delete unwanted data.
2021-11-03 02:24:20 +00:00
- alert : CephPGNotScrubbed
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="PG_NOT_SCRUBBED"} == 1
for : 5m
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#pg-not-scrubbed
2021-11-03 02:24:20 +00:00
summary : Placement group(s) have not been scrubbed
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
One or more PGs have not been scrubbed recently. Scrubs check metadata integrity,
protecting against bit-rot. They check that metadata
is consistent across data replicas. When PGs miss their scrub interval, it may
indicate that the scrub window is too small, or PGs were not in a 'clean' state during the
2021-09-16 23:24:29 +00:00
scrub window.
You can manually initiate a scrub with : ceph pg scrub <pgid>
2021-11-03 02:24:20 +00:00
- alert : CephPGsHighPerOSD
expr : ceph_health_detail{name="TOO_MANY_PGS"} == 1
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks/#too-many-pgs
summary : Placement groups per OSD is too high
description : |
The number of placement groups per OSD is too high (exceeds the mon_max_pg_per_osd setting).
2022-07-26 16:06:27 +00:00
Check that the pg_autoscaler has not been disabled for any pools with 'ceph osd pool autoscale-status',
2021-11-03 02:24:20 +00:00
and that the profile selected is appropriate. You may also adjust the target_size_ratio of a pool to guide
the autoscaler based on the expected relative size of the pool
2022-07-26 16:06:27 +00:00
('ceph osd pool set cephfs.cephfs.meta target_size_ratio .1') or set the pg_autoscaler
mode to "warn" and adjust pg_num appropriately for one or more pools.
2021-11-03 02:24:20 +00:00
- alert : CephPGNotDeepScrubbed
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="PG_NOT_DEEP_SCRUBBED"} == 1
for : 5m
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#pg-not-deep-scrubbed
2021-11-03 02:24:20 +00:00
summary : Placement group(s) have not been deep scrubbed
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
One or more PGs have not been deep scrubbed recently. Deep scrubs
protect against bit-rot. They compare data
replicas to ensure consistency. When PGs miss their deep scrub interval, it may indicate
2021-09-16 23:24:29 +00:00
that the window is too small or PGs were not in a 'clean' state during the deep-scrub
window.
You can manually initiate a deep scrub with : ceph pg deep-scrub <pgid>
2019-04-15 13:35:09 +00:00
- name : nodes
rules :
2021-11-03 02:24:20 +00:00
- alert : CephNodeRootFilesystemFull
2020-01-23 11:52:24 +00:00
expr : node_filesystem_avail_bytes{mountpoint="/"} / node_filesystem_size_bytes{mountpoint="/"} * 100 < 5
2020-03-27 10:06:08 +00:00
for : 5m
2019-04-15 13:35:09 +00:00
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .8 .1
2019-04-15 13:35:09 +00:00
annotations :
2021-11-03 02:24:20 +00:00
summary : Root filesystem is dangerously full
2020-01-23 11:52:24 +00:00
description : >
2022-07-26 16:06:27 +00:00
Root volume is dangerously full : {{ $value | humanize }}% free.
2020-01-23 11:52:24 +00:00
2022-07-26 16:06:27 +00:00
# alert on packet errors and drop rate
2021-11-03 02:24:20 +00:00
- alert : CephNodeNetworkPacketDrops
2020-11-11 17:55:30 +00:00
expr : |
(
increase(node_network_receive_drop_total{device!="lo"}[1m]) +
increase(node_network_transmit_drop_total{device!="lo"}[1m])
) / (
increase(node_network_receive_packets_total{device!="lo"}[1m]) +
increase(node_network_transmit_packets_total{device!="lo"}[1m])
) >= 0.0001 or (
increase(node_network_receive_drop_total{device!="lo"}[1m]) +
increase(node_network_transmit_drop_total{device!="lo"}[1m])
) >= 10
2019-04-15 13:35:09 +00:00
labels :
severity : warning
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .8 .2
2019-04-15 13:35:09 +00:00
annotations :
2022-07-26 16:06:27 +00:00
summary : One or more NICs reports packet drops
2019-04-15 13:35:09 +00:00
description : >
2020-11-11 17:55:30 +00:00
Node {{ $labels.instance }} experiences packet drop > 0.01% or >
10 packets/s on interface {{ $labels.device }}.
2020-01-23 11:52:24 +00:00
2021-11-03 02:24:20 +00:00
- alert : CephNodeNetworkPacketErrors
2020-01-23 11:52:24 +00:00
expr : |
2020-11-11 17:55:30 +00:00
(
increase(node_network_receive_errs_total{device!="lo"}[1m]) +
increase(node_network_transmit_errs_total{device!="lo"}[1m])
) / (
increase(node_network_receive_packets_total{device!="lo"}[1m]) +
increase(node_network_transmit_packets_total{device!="lo"}[1m])
) >= 0.0001 or (
increase(node_network_receive_errs_total{device!="lo"}[1m]) +
increase(node_network_transmit_errs_total{device!="lo"}[1m])
) >= 10
2019-04-15 13:35:09 +00:00
labels :
severity : warning
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .8 .3
2019-04-15 13:35:09 +00:00
annotations :
2022-07-26 16:06:27 +00:00
summary : One or more NICs reports packet errors
2019-04-15 13:35:09 +00:00
description : >
2020-11-11 17:55:30 +00:00
Node {{ $labels.instance }} experiences packet errors > 0.01% or
> 10 packets/s on interface {{ $labels.device }}.
2020-01-23 11:52:24 +00:00
2021-09-16 23:24:29 +00:00
# Restrict to device names beginning with '/' to skip false alarms from
# tmpfs, overlay type filesystems
2021-11-03 02:24:20 +00:00
- alert : CephNodeDiskspaceWarning
2020-01-23 11:52:24 +00:00
expr : |
2021-09-16 23:24:29 +00:00
predict_linear(node_filesystem_free_bytes{device=~"/.*"}[2d], 3600 * 24 * 5) *
2020-03-26 21:49:57 +00:00
on (instance) group_left(nodename) node_uname_info < 0
2019-04-15 13:35:09 +00:00
labels :
severity : warning
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .8 .4
2019-04-15 13:35:09 +00:00
annotations :
2022-07-26 16:06:27 +00:00
summary : Host filesystem free space is getting low
2019-04-15 13:35:09 +00:00
description : >
2020-01-23 11:52:24 +00:00
Mountpoint {{ $labels.mountpoint }} on {{ $labels.nodename }}
2022-07-26 16:06:27 +00:00
will be full in less than 5 days based on the 48 hour trailing
fill rate.
2020-01-23 11:52:24 +00:00
2021-11-03 02:24:20 +00:00
- alert : CephNodeInconsistentMTU
2022-03-23 13:53:58 +00:00
expr : |
node_network_mtu_bytes * (node_network_up{device!="lo"} > 0) ==
scalar(
max by (device) (node_network_mtu_bytes * (node_network_up{device!="lo"} > 0)) !=
quantile by (device) (.5, node_network_mtu_bytes * (node_network_up{device!="lo"} > 0))
)
or
node_network_mtu_bytes * (node_network_up{device!="lo"} > 0) ==
scalar(
min by (device) (node_network_mtu_bytes * (node_network_up{device!="lo"} > 0)) !=
quantile by (device) (.5, node_network_mtu_bytes * (node_network_up{device!="lo"} > 0))
)
2021-01-05 09:04:22 +00:00
labels :
severity : warning
type : ceph_default
annotations :
2021-11-03 02:24:20 +00:00
summary : MTU settings across Ceph hosts are inconsistent
2021-01-05 09:04:22 +00:00
description : >
Node {{ $labels.instance }} has a different MTU size ({{ $value }})
2022-03-23 13:53:58 +00:00
than the median of devices named {{ $labels.device }}.
2021-01-05 09:04:22 +00:00
2019-04-15 13:35:09 +00:00
- name : pools
rules :
2021-11-03 02:24:20 +00:00
- alert : CephPoolGrowthWarning
2020-01-23 11:52:24 +00:00
expr : |
2021-11-03 02:24:20 +00:00
(predict_linear(ceph_pool_percent_used[2d], 3600 * 24 * 5) * on(pool_id)
group_right ceph_pool_metadata) >= 95
2019-04-15 13:35:09 +00:00
labels :
severity : warning
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .9 .2
2019-04-15 13:35:09 +00:00
annotations :
2022-07-26 16:06:27 +00:00
summary : Pool growth rate may soon exceed capacity
2019-04-15 13:35:09 +00:00
description : >
2021-11-03 02:24:20 +00:00
Pool '{{ $labels.name }}' will be full in less than 5 days
2020-01-23 11:52:24 +00:00
assuming the average fill-up rate of the past 48 hours.
2021-11-03 02:24:20 +00:00
- alert : CephPoolBackfillFull
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="POOL_BACKFILLFULL"} > 0
labels :
severity : warning
type : ceph_default
annotations :
2022-07-26 16:06:27 +00:00
summary : Free space in a pool is too low for recovery/backfill
2021-09-16 23:24:29 +00:00
description : >
2022-07-26 16:06:27 +00:00
A pool is approaching the near full threshold, which will
prevent recovery/backfill operations from completing.
Consider adding more capacity.
2021-11-03 02:24:20 +00:00
- alert : CephPoolFull
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="POOL_FULL"} > 0
for : 1m
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .9 .1
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#pool-full
2021-11-03 02:24:20 +00:00
summary : Pool is full - writes are blocked
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
A pool has reached its MAX quota, or OSDs supporting the pool
have reached the FULL threshold. Until this is resolved, writes to
2021-09-16 23:24:29 +00:00
the pool will be blocked.
2021-11-03 02:24:20 +00:00
Pool Breakdown (top 5)
{{- range query "topk(5, sort_desc(ceph_pool_percent_used * on(pool_id) group_right ceph_pool_metadata))" }}
- {{ .Labels.name }} at {{ .Value }}%
{{- end }}
2022-07-26 16:06:27 +00:00
Increase the pool's quota, or add capacity to the cluster first
then increase the pool's quota (e.g. ceph osd pool set quota <pool_name> max_bytes <bytes>)
2021-11-03 02:24:20 +00:00
- alert : CephPoolNearFull
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="POOL_NEAR_FULL"} > 0
for : 5m
labels :
severity : warning
type : ceph_default
annotations :
2022-07-26 16:06:27 +00:00
summary : One or more Ceph pools are nearly full
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
A pool has exceeeded the warning (percent full) threshold, or OSDs
supporting the pool have reached the NEARFULL threshold. Writes may
continue, but you are at risk of the pool going read-only if more capacity
2021-09-16 23:24:29 +00:00
isn't made available.
2022-07-26 16:06:27 +00:00
Determine the affected pool with 'ceph df detail', looking
at QUOTA BYTES and STORED. Increase the pool's quota, or add
capacity to the cluster first then increase the pool's quota
(e.g. ceph osd pool set quota <pool_name> max_bytes <bytes>).
Also ensure that the balancer is active.
2020-10-08 03:30:56 +00:00
- name : healthchecks
rules :
2021-11-03 02:24:20 +00:00
- alert : CephSlowOps
2020-10-08 03:30:56 +00:00
expr : ceph_healthcheck_slow_ops > 0
for : 30s
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#slow-ops
2022-07-26 16:06:27 +00:00
summary : OSD operations are slow to complete
2020-10-08 03:30:56 +00:00
description : >
{{ $value }} OSD requests are taking too long to process (osd_op_complaint_time exceeded)
2021-09-16 23:24:29 +00:00
# cephadm alerts
- name : cephadm
rules :
2021-11-03 02:24:20 +00:00
- alert : CephadmUpgradeFailed
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="UPGRADE_EXCEPTION"} > 0
for : 30s
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .11 .2
2021-09-16 23:24:29 +00:00
annotations :
2021-11-03 02:24:20 +00:00
summary : Ceph version upgrade has failed
2021-09-16 23:24:29 +00:00
description : >
The cephadm cluster upgrade process has failed. The cluster remains in
an undetermined state.
Please review the cephadm logs, to understand the nature of the issue
2021-11-03 02:24:20 +00:00
- alert : CephadmDaemonFailed
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="CEPHADM_FAILED_DAEMON"} > 0
for : 30s
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .11 .1
2021-09-16 23:24:29 +00:00
annotations :
2021-11-03 02:24:20 +00:00
summary : A ceph daemon manged by cephadm is down
2021-09-16 23:24:29 +00:00
description : >
A daemon managed by cephadm is no longer active. Determine, which
daemon is down with 'ceph health detail'. you may start daemons with
the 'ceph orch daemon start <daemon_id>'
2021-11-03 02:24:20 +00:00
- alert : CephadmPaused
2021-09-16 23:24:29 +00:00
expr : ceph_health_detail{name="CEPHADM_PAUSED"} > 0
for : 1m
labels :
severity : warning
type : ceph_default
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/cephadm/operations#cephadm-paused
2021-11-03 02:24:20 +00:00
summary : Orchestration tasks via cephadm are PAUSED
2021-09-16 23:24:29 +00:00
description : >
Cluster management has been paused manually. This will prevent the
orchestrator from service management and reconciliation. If this is
not intentional, resume cephadm operations with 'ceph orch resume'
# prometheus alerts
2021-11-03 02:24:20 +00:00
- name : PrometheusServer
2021-09-16 23:24:29 +00:00
rules :
2021-11-03 02:24:20 +00:00
- alert : PrometheusJobMissing
2021-09-16 23:24:29 +00:00
expr : absent(up{job="ceph"})
for : 30s
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .12 .1
2021-09-16 23:24:29 +00:00
annotations :
2021-11-03 02:24:20 +00:00
summary : The scrape job for Ceph is missing from Prometheus
2021-09-16 23:24:29 +00:00
description : |
The prometheus job that scrapes from Ceph is no longer defined, this
will effectively mean you'll have no metrics or alerts for the cluster.
Please review the job definitions in the prometheus.yml file of the prometheus
instance.
# Object related events
- name : rados
rules :
2021-11-03 02:24:20 +00:00
- alert : CephObjectMissing
2021-09-16 23:24:29 +00:00
expr : (ceph_health_detail{name="OBJECT_UNFOUND"} == 1) * on() (count(ceph_osd_up == 1) == bool count(ceph_osd_metadata)) == 1
for : 30s
labels :
severity : critical
type : ceph_default
2021-11-03 02:24:20 +00:00
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .10 .1
2021-09-16 23:24:29 +00:00
annotations :
2021-10-19 00:07:02 +00:00
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks#object-unfound
2022-07-26 16:06:27 +00:00
summary : Object(s) marked UNFOUND
2021-09-16 23:24:29 +00:00
description : |
2022-07-26 16:06:27 +00:00
The latest version of a RADOS object can not be found, even though all OSDs are up. I/O
2021-09-16 23:24:29 +00:00
requests for this object from clients will block (hang). Resolving this issue may
2021-11-03 02:24:20 +00:00
require the object to be rolled back to a prior version manually, and manually verified.
# Generic
- name : generic
rules :
- alert : CephDaemonCrash
expr : ceph_health_detail{name="RECENT_CRASH"} == 1
for : 1m
labels :
severity : critical
type : ceph_default
oid : 1.3 .6 .1 .4 .1 .50495 .1 .2 .1 .1 .2
annotations :
documentation : https://docs.ceph.com/en/latest/rados/operations/health-checks/#recent-crash
summary : One or more Ceph daemons have crashed, and are pending acknowledgement
description : |
One or more daemons have crashed recently, and need to be acknowledged. This notification
2022-07-26 16:06:27 +00:00
ensures that software crashes do not go unseen. To acknowledge a crash, use the
2021-11-23 08:30:38 +00:00
'ceph crash archive <id>' command.