mirror of https://github.com/vacp2p/wakurtosis.git
Fixed error when having multiple metrics in same plot
This commit is contained in:
parent
176c266e48
commit
b68fad642f
|
@ -76,6 +76,7 @@ def fetch_cadvisor_stats_from_prometheus(metrics, prom, container_ip, start_ts,
|
||||||
|
|
||||||
for metric in metrics["to_query"].values():
|
for metric in metrics["to_query"].values():
|
||||||
if type(metric["metric_name"]) is list:
|
if type(metric["metric_name"]) is list:
|
||||||
|
if "values" not in metric.keys():
|
||||||
metric["values"] = [[] for _ in range(len(metric["metric_name"]))]
|
metric["values"] = [[] for _ in range(len(metric["metric_name"]))]
|
||||||
for i, submetric in enumerate(metric["metric_name"]):
|
for i, submetric in enumerate(metric["metric_name"]):
|
||||||
values = fetch_metric(prom, submetric, container_ip, start_timestamp, end_timestamp,
|
values = fetch_metric(prom, submetric, container_ip, start_timestamp, end_timestamp,
|
||||||
|
|
Loading…
Reference in New Issue