Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion aiopslab/service/telemetry/prometheus.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -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,
Comment thread
HacksonClark marked this conversation as resolved.
)
for line in status_output.splitlines():
if line.strip().startswith("STATUS:"):
status_value = line.split(":", 1)[1].strip().lower()
Expand All@@ -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