Update monitor commands to use coordinator_url instead of monitoring_service_url for /jobs endpoint
Some checks failed
CLI Tests / test-cli (push) Failing after 10s
Cross-Node Transaction Testing / transaction-test (push) Successful in 2s
Deploy to Testnet / deploy-testnet (push) Successful in 1m11s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Successful in 2s
Security Scanning / security-scan (push) Successful in 23s

- Change endpoint URL from monitoring_service_url to coordinator_url in metrics command job metrics section
- Change endpoint URL from monitoring_service_url to coordinator_url in history command
This commit is contained in:
aitbc
2026-05-08 13:29:08 +02:00
parent 7d357e40b4
commit a533958ecd

View File

@@ -135,7 +135,7 @@ def metrics(ctx, period: str, export_path: Optional[str]):
# Job metrics
try:
resp = client.get(
f"{config.monitoring_service_url}/jobs",
f"{config.coordinator_url}/jobs",
headers={"X-Api-Key": config.api_key or ""}
)
if resp.status_code == 200:
@@ -279,7 +279,7 @@ def history(ctx, period: str):
with httpx.Client(timeout=10) as client:
try:
resp = client.get(
f"{config.monitoring_service_url}/jobs",
f"{config.coordinator_url}/jobs",
headers={"X-Api-Key": config.api_key or ""}
)
if resp.status_code == 200: