Repository navigation
mon: surface data dir + db size as perf counters - #68916
Conversation
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
20 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
bc3bb10 to
59033d6
Compare
|
@ceph/core mind taking a look when you get a chance? Adds four mon perf gauges (data dir total/avail/avail_percent + db total bytes) that auto-surface as ceph_mon_* via prometheus and ceph-exporter. Anthony D'Atri's tracker enhancement. Rebased on main, all green. |
|
@rzarzynski mind taking a look when you get a chance, or pointing me to the right person? (the @ceph/core mention above doesn't notify since I'm not in the org) |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
The HealthMonitor already collects filesystem stats and the estimated size of the monitor's key/value store on every tick, and uses them to raise MON_DISK_LOW/CRIT/BIG. They are not exposed anywhere else, so there is no way to trend monitor DB growth or available space on the filesystem hosting mon_data. Register four new counters in the existing mon perf-counter group and set them from HealthMonitor::check_member_health() after the stats are populated: data_disk_total_bytes - filesystem total data_disk_avail_bytes - filesystem available data_disk_avail_percent - filesystem available, as a percentage db_total_bytes - estimated on-disk size of the kv store They are tagged PRIO_USEFUL, so they surface automatically as ceph_mon_* Prometheus metrics via the prometheus mgr module and via ceph-exporter (both consume daemon perf counters at that priority). Tracker: https://tracker.ceph.com/issues/76589 Signed-off-by: Lumir Sliva <[email protected]>
59033d6 to
ab30aa8
Compare
|
This PR has been added to wip-bharath10-testing-20260806.013257-main. |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
Summary
HealthMonitor::check_member_health()already collects filesystem stats for the data directory and the estimated on-disk size of the monitor key/value store every tick, and uses them to raiseMON_DISK_LOW/CRIT/BIG. The values aren't surfaced anywhere else, so there's no way to trend monitor DB growth or available space on the filesystem hostingmon_data.This adds four counters to the existing
monperf-counter group, set fromcheck_member_health()after the stats are populated:data_disk_total_bytes— filesystem totaldata_disk_avail_bytes— filesystem availabledata_disk_avail_percent— filesystem available, as a percentagedb_total_bytes— estimated on-disk size of the key/value storeThey're tagged
PRIO_USEFUL, so they propagate to theprometheusmgr module andceph-exporter(both consume daemon perf counters at that priority) and appear asceph_mon_*metrics with theceph_daemonlabel.No new config option, no admin-socket additions, no API change.
Tracker: https://tracker.ceph.com/issues/76589
Verification
Built on a vstart cluster, 1 mon + 1 mgr + 1 osd.
ceph daemon mon.a perf dump mon:{ "mon": { "num_sessions": 6, "session_add": 1, "session_rm": 26, "session_trim": 0, "num_elections": 2, "election_call": 0, "election_win": 2, "election_lose": 0, "data_disk_total_bytes": 211483705344, "data_disk_avail_bytes": 99612540928, "data_disk_avail_percent": 47, "db_total_bytes": 932419 } }ceph daemon mon.a perf schema(new entries only):prometheusmgr module endpoint (exclude_perf_counters=false):ceph-exporterendpoint (same names, same descriptions, since both scrape the same schema):db_total_bytesis visibly growing across scrapes (932 419 → 2 148 576 → 2 607 983 bytes over a few minutes) as the mon writes maps/keys, which is what trending is meant to expose.Checklist