diff --git a/aiopslab/service/telemetry/prometheus.py b/aiopslab/service/telemetry/prometheus.py index 25a2b72b..cae5ac73 100644 --- a/aiopslab/service/telemetry/prometheus.py +++ b/aiopslab/service/telemetry/prometheus.py @@ -132,7 +132,10 @@ def _is_prometheus_running(self) -> bool: namespace = self.helm_configs.get("namespace") if not release_name or not namespace: return False - status_output = Helm.status(release_name=release_name, namespace=namespace) + status_output = Helm.status( + release_name=self.name.lower(), + namespace=self.namespace, + ) for line in status_output.splitlines(): if line.strip().startswith("STATUS:"): status_value = line.split(":", 1)[1].strip().lower() @@ -141,3 +144,4 @@ def _is_prometheus_running(self) -> bool: except Exception as e: logging.exception(f"Unexpected error while checking Prometheus status: {e}") return False +