Fix metrics that have integer value labels

This commit is contained in:
Erik Johnston 2018-05-03 15:51:04 +01:00
parent 966686c845
commit 95b6912045
1 changed files with 1 additions and 1 deletions

View File

@ -324,4 +324,4 @@ def _escape_character(m):
def _escape_label_value(value):
"""Takes a label value and escapes quotes, newlines and backslashes
"""
return re.sub(r"([\n\"\\])", _escape_character, value)
return re.sub(r"([\n\"\\])", _escape_character, str(value))