mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix test_prometheus_endpoint
This commit is contained in:
parent
f07e14825d
commit
a0488d21d2
@ -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