From f85331c7bad4f94a6b92ed66b2490271d902abf3 Mon Sep 17 00:00:00 2001 From: Ganesh Rathinavel Date: Fri, 19 May 2023 00:36:32 +0530 Subject: [PATCH] added victoria metrics url auto discovery --- .gitignore | 3 ++- robusta_krr/core/integrations/prometheus/loader.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2930ebe2..7fa9806b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # Byte-compiled / optimized / DLL files +.idea/ __pycache__/ *.py[cod] *$py.class @@ -130,4 +131,4 @@ dmypy.json .DS_Store -robusta_lib \ No newline at end of file +robusta_lib diff --git a/robusta_krr/core/integrations/prometheus/loader.py b/robusta_krr/core/integrations/prometheus/loader.py index 685dd1c0..5713ca88 100644 --- a/robusta_krr/core/integrations/prometheus/loader.py +++ b/robusta_krr/core/integrations/prometheus/loader.py @@ -33,6 +33,7 @@ def find_prometheus_url(self, *, api_client: Optional[ApiClient] = None) -> Opti "app=prometheus-msteams", "app=rancher-monitoring-prometheus", "app=prometheus-prometheus", + "app.kubernetes.io/name=vmsingle", ], api_client=api_client, )