diff --git a/aiopslab/service/telemetry/prometheus.py b/aiopslab/service/telemetry/prometheus.py index b848259d..65f3efdf 100644 --- a/aiopslab/service/telemetry/prometheus.py +++ b/aiopslab/service/telemetry/prometheus.py @@ -128,7 +128,10 @@ def _pvc_exists(self, pvc_name: str) -> bool: def _is_prometheus_running(self) -> bool: """Check if Prometheus Helm release is deployed.""" try: - status_output = Helm.status(**self.helm_configs) + 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() @@ -137,3 +140,4 @@ def _is_prometheus_running(self) -> bool: except Exception as e: logging.exception(f"Unexpected error while checking Prometheus status: {e}") return False +