diff options
| author | Avi-Robusta <97387909+Avi-Robusta@users.noreply.github.com> | 2023-06-12 18:48:07 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-12 18:48:07 +0300 |
| commit | ccd83c45f86e008aae7da1fc870f2a79d7daa17b (patch) | |
| tree | 17e2ad8854bde78dff6aa340d06b158f8c753cc3 | |
| parent | 82956655b435dadb48e198b2881091e453338f67 (diff) | |
| parent | cda75169a06e3d8cb79495ccb1a59df62c35dc69 (diff) | |
Merge pull request #68 from robusta-dev/bugfix_metrics_calculation
fix bug only collect one pod series per container
| -rw-r--r-- | robusta_krr/core/integrations/prometheus/metrics/base_filtered_metric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/robusta_krr/core/integrations/prometheus/metrics/base_filtered_metric.py b/robusta_krr/core/integrations/prometheus/metrics/base_filtered_metric.py index 6a4d964..f6a535e 100644 --- a/robusta_krr/core/integrations/prometheus/metrics/base_filtered_metric.py +++ b/robusta_krr/core/integrations/prometheus/metrics/base_filtered_metric.py @@ -17,7 +17,7 @@ class BaseFilteredMetricLoader(BaseMetricLoader): @staticmethod def get_target_name(series: PrometheusSeries) -> Optional[str]: - for label in ["container", "pod", "node"]: + for label in ["pod", "container", "node"]: if label in series["metric"]: return series["metric"][label] return None |
