Add Ceph usage by device class metric #19284
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a metric for the percentage of storage used in Ceph, broken down by device class.
Motivation
The Ceph integration does not currently report the amount of space utilized by device class, leading to a lack of visibility over potential issues with a specific device class becoming full. According to the documentation the
ceph df
command has provided a RAW STORAGE section (calledstats_by_class
in the JSON output) since Nautilus, enabling this reporting across the six newest versions of Ceph.Additional Notes
I have not updated the unit test for the new metric, as I am unsure if there are any special requirements related to generating/updating the
raw.json
/raw2.json
fixtures required. I apologize if I have missed any documentation on this topic. Please let me know what is needed to satisfy any requirements I am missing.Review checklist (to be filled by reviewers)
qa/skip-qa
label if the PR doesn't need to be tested during QA.backport/<branch-name>
label to the PR and it will automatically open a backport PR once this one is merged