fix: prometheus response 500
API /query_range always report 500 error Bug: 1999839 Change-Id: I66a152c2c76d4984cc2fbf085e8c2d1da3701ece
This commit is contained in:
parent
ceabe71b7f
commit
7f363390c8
@ -73,7 +73,7 @@ def get_prometheus_query_range_response(
|
|||||||
ret.error = resp["error"]
|
ret.error = resp["error"]
|
||||||
if "data" in resp:
|
if "data" in resp:
|
||||||
result = [
|
result = [
|
||||||
schemas.PrometheusQueryRangeResult(metric=i["metric"], values=i["values"])
|
schemas.PrometheusQueryRangeResult(metric=i["metric"], value=i["values"])
|
||||||
for i in resp["data"]["result"]
|
for i in resp["data"]["result"]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user