Skip to content

Commit

Permalink
mgr/prometheus: replace whitespaces in metrics' names
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/39434

Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit 843802f)
  • Loading branch information
alfonsomthd committed Apr 30, 2019
1 parent 32e6930 commit e9e11cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybind/mgr/prometheus/module.py
Expand Up @@ -121,7 +121,7 @@ def str_expfmt(self):
def promethize(path):
''' replace illegal metric name characters '''
result = path.replace('.', '_').replace(
'+', '_plus').replace('::', '_')
'+', '_plus').replace('::', '_').replace(' ', '_')

# Hyphens usually turn into underscores, unless they are
# trailing
Expand Down

0 comments on commit e9e11cd

Please sign in to comment.