]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/mgr: add slash to prometheus illegal metric name characters
authorMykola Golub <mgolub@suse.com>
Wed, 29 May 2019 06:38:35 +0000 (07:38 +0100)
committerMykola Golub <mgolub@suse.com>
Thu, 30 May 2019 08:18:31 +0000 (09:18 +0100)
commit425c5358fed9376939cff8a922c3ce1186d6b9e2
treea8fa08b22de16b26d071620ba6a528681828baf5
parent425f97ea990e4e5ea5853c8b462641112eef871d
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>
src/pybind/mgr/prometheus/module.py