From: Nizamudeen A Date: Wed, 21 Aug 2024 05:36:15 +0000 (+0530) Subject: qa/task: update alertmanager endpoints version X-Git-Tag: testing/wip-vshankar-testing-20241122.180955-squid-debug~27^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=71182f8bf322e9981126a30ef0d84cddaefcb245;p=ceph-ci.git qa/task: update alertmanager endpoints version the v1 endpoint is deprecated and v2 is suggested to use. Fixes: https://tracker.ceph.com/issues/67183 Signed-off-by: Nizamudeen A (cherry picked from commit ac998b58487f6f9176b7f934ed61ae57e59c2ee5) --- diff --git a/qa/suites/orch/cephadm/workunits/task/test_monitoring_stack_basic.yaml b/qa/suites/orch/cephadm/workunits/task/test_monitoring_stack_basic.yaml index 89733dabead..515293ea83a 100644 --- a/qa/suites/orch/cephadm/workunits/task/test_monitoring_stack_basic.yaml +++ b/qa/suites/orch/cephadm/workunits/task/test_monitoring_stack_basic.yaml @@ -61,6 +61,6 @@ tasks: curl -s http://${PROM_IP}:9095/api/v1/alerts curl -s http://${PROM_IP}:9095/api/v1/alerts | jq -e '.data | .alerts | .[] | select(.labels | .alertname == "CephMonDown") | .state == "firing"' # check alertmanager endpoints are responsive and mon down alert is active - curl -s http://${ALERTM_IP}:9093/api/v1/status - curl -s http://${ALERTM_IP}:9093/api/v1/alerts - curl -s http://${ALERTM_IP}:9093/api/v1/alerts | jq -e '.data | .[] | select(.labels | .alertname == "CephMonDown") | .status | .state == "active"' + curl -s http://${ALERTM_IP}:9093/api/v2/status + curl -s http://${ALERTM_IP}:9093/api/v2/alerts + curl -s http://${ALERTM_IP}:9093/api/v2/alerts | jq -e '.[] | select(.labels | .alertname == "CephMonDown") | .status | .state == "active"'