]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/prometheus: fix metric type undef -> untyped 19834/head
authorIlya Margolin <ilya@ulani.de>
Thu, 14 Dec 2017 16:07:01 +0000 (17:07 +0100)
committerPrashant D <pdhange@redhat.com>
Mon, 8 Jan 2018 04:38:28 +0000 (23:38 -0500)
Fixes "Prometheus exporter can't get metrics after update to 12.2.2"

Fixes: http://tracker.ceph.com/issues/22313
Signed-off-by: Ilya Margolin <listen@ulani.de>
(cherry picked from commit 58669bedf530e1ccaf4d6c4bf018eeec43b78647)

src/pybind/mgr/prometheus/module.py

index 842517f208f37e7a101864d875b295263caec083..e03b4d900472760c507d41531b5bb8ec4189cf71 100644 (file)
@@ -181,7 +181,7 @@ class Module(MgrModule):
         # so that we can stably use the same tag names that
         # the Prometheus node_exporter does
         metrics['disk_occupation'] = Metric(
-            'undef',
+            'untyped',
             'disk_occupation',
             'Associate Ceph daemon with disk used',
             DISK_OCCUPATION