diff options
| author | Ganesh Rathinavel Medayil <ganeshrvel@outlook.com> | 2024-02-27 18:47:52 +0530 |
|---|---|---|
| committer | Ganesh Rathinavel Medayil <ganeshrvel@outlook.com> | 2024-02-27 18:47:52 +0530 |
| commit | 4a7b354e30669c05db59a36e8b931c50ffb35590 (patch) | |
| tree | 02affd5d33c65a7e272dcfe70d84a1e29a50d044 /robusta_krr | |
| parent | 55e2809361396d828a4597c903ae0abff57cc945 (diff) | |
Updated prometrix.
Diffstat (limited to 'robusta_krr')
| -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 761909b..c628de7 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 @@ -108,7 +108,7 @@ class PrometheusMetricsService(MetricsService): async def query(self, query: str) -> dict: loop = asyncio.get_running_loop() - return await loop.run_in_executor(self.executor, lambda: self.prometheus.custom_query(query=query)) + return await loop.run_in_executor(self.executor, lambda: self.prometheus.safe_custom_query(query=query)) def validate_cluster_name(self): if not settings.prometheus_cluster_label and not settings.prometheus_label: |
