]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: add slash to prometheus illegal metric name characters 28485/head
authorMykola Golub <mgolub@suse.com>
Wed, 29 May 2019 06:38:35 +0000 (07:38 +0100)
committerMykola Golub <mgolub@suse.com>
Tue, 11 Jun 2019 07:27:33 +0000 (10:27 +0300)
commit0b42bb57c72c49206086b1b0108c7aa56aaff0f4
treee94a0928f7c7493c15c8b645a6a2861562a122b6
parentaebe1b58fe051cc4c23ff167f64491153e4e110b
pybind/mgr: add slash to prometheus illegal metric name characters

(replace with underscore)

While here, change the sequence of replaces to a single regex, as it
becomes too long.

Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 425c5358fed9376939cff8a922c3ce1186d6b9e2)
src/pybind/mgr/prometheus/module.py