Add minus sign in prometheus metric name in test

This commit is contained in:
vdimir 2021-07-09 18:53:32 +03:00
parent 1b4d2cbc6d
commit 2fc16dd692
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31

View File

@ -30,7 +30,7 @@ def parse_response_line(line):
if line.startswith("#"):
return {}
match = re.match('^([a-zA-Z_:][a-zA-Z0-9_:]+)(\{.*\})? (\d)', line)
match = re.match('^([a-zA-Z_:][a-zA-Z0-9_:-]+)(\{.*\})? (\d)', line)
assert match, line
name, _, val = match.groups()
return {name: int(val)}