Prometheus is giving "IndexError: list index out of range"

168 Views Asked by At

I am trying get metric in list form using prometheus_api_client It worked effectively a few days back but now it is throwing error for the same code.

The error occur in the following line

my_metric_object = metric_object_list[1] # one of the metrics from the list
print(my_metric_object)

Basic queries are giving me results. I am trying to use range queries(list of metric that happened in a timeframe) to finally convert and use them in DataFrames.

0

There are 0 best solutions below