From ede63b2eff23d824425da69ed304049c1c232ffd Mon Sep 17 00:00:00 2001 From: Patrick Seidensal Date: Tue, 27 Jul 2021 15:18:46 +0200 Subject: [PATCH] mgr/prometheus: Fix metric types from gauge to counter Affected metrics: - ceph_pool_rd - ceph_pool_rd_bytes - ceph_pool_rw - ceph_pool_rw_bytes Fixes: https://tracker.ceph.com/issues/51868 Signed-off-by: Patrick Seidensal --- src/pybind/mgr/prometheus/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index bc6c4eed2b9..b99aeb752de 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -481,7 +481,7 @@ class Module(MgrModule): for state in DF_POOL: path = 'pool_{}'.format(state) metrics[path] = Metric( - 'gauge', + 'counter' if state in ('rd', 'rd_bytes', 'wr', 'wr_bytes') else 'gauge', path, 'DF pool {}'.format(state), ('pool_id',) -- 2.47.3