]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
prometheus: Fix order of occupation values 22149/head
authorBoris Ranto <branto@redhat.com>
Tue, 22 May 2018 10:04:20 +0000 (12:04 +0200)
committerBoris Ranto <branto@redhat.com>
Tue, 22 May 2018 10:04:22 +0000 (12:04 +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>
src/pybind/mgr/prometheus/module.py

index aac656e407ee5693a4512e0088948092248903b9..86a9f8f458c54f04a1c4d1df6c2301a2ca38678e 100644 (file)
@@ -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 "