diff options
| author | avi robusta <avi@robusta.dev> | 2024-03-17 19:17:49 +0200 |
|---|---|---|
| committer | avi@robusta.dev <avi@robusta.dev> | 2024-03-17 19:17:59 +0200 |
| commit | 6b414fbb2012f94f806f1362aa6b2fcfaa3f5b9d (patch) | |
| tree | 062249f03e19c7295def3a3ad7f85cccc366fc59 | |
| parent | 5e26d6ccffb144894739e968269327280b7c64b4 (diff) | |
fix history range query
| -rw-r--r-- | robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py b/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py index 939dc6e..0db59c2 100644 --- a/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py +++ b/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py @@ -158,7 +158,7 @@ class PrometheusMetricsService(MetricsService): now = datetime.now() result = await self.query_range( - "prometheus_tsdb_head_series", + "max(prometheus_tsdb_head_series)", start=now - history_duration, end=now, step=timedelta(hours=1), |
