]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/prometheus:Improve the pool metadata 40804/head
authorPaul Cuzner <pcuzner@redhat.com>
Tue, 2 Feb 2021 01:20:30 +0000 (14:20 +1300)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Wed, 28 Apr 2021 07:17:50 +0000 (14:17 +0700)
commit133f1de09c7e61ecb6cabe42ff1bc395e85b4291
tree29783f350f4233780502fdd840b08f3b8ed2b5c4
parent5310812fb6bf931b9993fb2da2aea6cc89702466
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>
(cherry picked from commit 708223280067162e1c833a55112bf724caad0fb3)
src/pybind/mgr/prometheus/module.py