diff --git a/orion.py b/orion.py index 1cac3d9..b7ec4cc 100644 --- a/orion.py +++ b/orion.py @@ -95,9 +95,10 @@ def get_metric_data(ids, index, metrics, match, logger): """ dataframe_list = [] for metric in metrics: - logger.info("Collecting %s", metric["metric"]) - metric_of_interest = metric['metric_of_interest'] metric_name = metric['name'] + logger.info("Collecting %s", metric_name) + metric_of_interest = metric['metric_of_interest'] + if "agg" in metric.keys(): try: cpu = match.get_agg_metric_query( diff --git a/requirements.txt b/requirements.txt index e3f3ac3..218fe88 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ click==8.1.7 elastic-transport==8.11.0 elasticsearch==8.11.1 elasticsearch7==7.13.0 -fmatch==0.0.3 +fmatch==0.0.4 numpy==1.26.3 pandas==2.1.4 python-dateutil==2.8.2