]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus:Improve the pool metadata 40635/head
authorPaul Cuzner <pcuzner@redhat.com>
Tue, 2 Feb 2021 01:20:30 +0000 (14:20 +1300)
committerPaul Cuzner <pcuzner@redhat.com>
Wed, 7 Apr 2021 21:07:01 +0000 (09:07 +1200)
commit708223280067162e1c833a55112bf724caad0fb3
tree003ce2457e417cea06c73e24d0b0f921fa853f61
parent9e96806aea89129bf23a5f83bb02d33e86ee8a2f
mgr/prometheus:Improve the pool metadata

Adds percent_used and used_bytes to the per pool
metrics group, and add additional labels to the ceph_pool_metadata
metric
- compression_mode - so consumers can tell whether compression
  is active
- description - provide a text string showing the protection
  scheme of the pool (e.g. replica2, or ec:4+2
- type - text string showing replicated or erasure enabling
  easy filtering across the pools

These additional fields allow compression savings to be more
easily shown. The inclusion of percent_used ensures that any
prometheus based view of pool usage will ALWAYS match the CLI.

Fixes: https://tracker.ceph.com/issues/49049
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
src/pybind/mgr/prometheus/module.py