]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/prometheus: fix metric type undef -> untyped
authorJan Fajerski <jfajerski@suse.com>
Tue, 10 Oct 2017 06:40:31 +0000 (08:40 +0200)
committerJohn Spray <john.spray@redhat.com>
Wed, 1 Nov 2017 23:03:25 +0000 (23:03 +0000)
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 6306392492d103200b21ea91bce10a315d7c4e16)

src/pybind/mgr/prometheus/module.py

index 1346ad853d24d54d8e391bc662a0bc81d15f9cf3..2b22b67e8c11916b7d3fbc36e1b11ea78f94a802 100644 (file)
@@ -169,7 +169,7 @@ class Module(MgrModule):
     def _setup_static_metrics(self):
         metrics = {}
         metrics['health_status'] = Metric(
-            'undef',
+            'untyped',
             'health_status',
             'Cluster health status'
         )
@@ -179,13 +179,13 @@ class Module(MgrModule):
             'Monitors in quorum'
         )
         metrics['osd_metadata'] = Metric(
-            'undef',
+            'untyped',
             'osd_metadata',
             'OSD Metadata',
             OSD_METADATA
         )
         metrics['pool_metadata'] = Metric(
-            'undef',
+            'untyped',
             'pool_metadata',
             'POOL Metadata',
             POOL_METADATA