mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Add minus sign in prometheus metric name in test
This commit is contained in:
parent
1b4d2cbc6d
commit
2fc16dd692
@ -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)}
|
||||
|
Loading…
Reference in New Issue
Block a user