diff --git a/snafu/utils/get_prometheus_data.py b/snafu/utils/get_prometheus_data.py index 36a3a4e9..b5b4a8c0 100644 --- a/snafu/utils/get_prometheus_data.py +++ b/snafu/utils/get_prometheus_data.py @@ -67,6 +67,7 @@ def get_all_metrics(self): filename = tool_include_file else: filename = os.path.join(include_file_dir, "included_labels.json") + logger.info("using prometheus metric include file %s" % filename) # open tools include file and loop through all with open(filename, "r") as f: @@ -84,6 +85,8 @@ def get_all_metrics(self): response = self.pc.custom_query_range(query, self.start, self.end, step, None) except Exception as e: + # response undefined at this point, we want to skip next for loop + response = [] logger.info(query) logger.warn("failure to get metric results %s" % e)