]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
prometheus: Fix order of occupation values
authorBoris Ranto <branto@redhat.com>
Tue, 22 May 2018 10:04:20 +0000 (12:04 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 1 Jun 2018 12:26:25 +0000 (14:26 +0200)
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 <branto@redhat.com>
(cherry picked from commit b5f16367eae097cb5994edb6f700a44a9c55504d)

src/pybind/mgr/prometheus/module.py

index 52e2888c09466091d9d006f83a0e555e8bf82632..8ac0f3adb983d8d6b03eb6dd366dc40742caea0c 100644 (file)
@@ -518,8 +518,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 "