From b5f16367eae097cb5994edb6f700a44a9c55504d Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Tue, 22 May 2018 12:04:20 +0200 Subject: [PATCH] prometheus: Fix order of occupation values When we merged the PR to unify the metadata labels, we forgot to switch the order of hostname and disk in ceph_disk_occupation metric. Signed-off-by: Boris Ranto --- src/pybind/mgr/prometheus/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index aac656e407ee5..86a9f8f458c54 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -530,8 +530,8 @@ class Module(MgrModule): id_, osd_hostname, osd_dev_node)) self.metrics.set('disk_occupation', 1, ( "osd.{0}".format(id_), - osd_hostname, - osd_dev_node + osd_dev_node, + osd_hostname )) else: self.log.info("Missing dev node metadata for osd {0}, skipping " -- 2.39.5