From 71182f8bf322e9981126a30ef0d84cddaefcb245 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Wed, 21 Aug 2024 11:06:15 +0530 Subject: [PATCH] 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) --- .../cephadm/workunits/task/test_monitoring_stack_basic.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 89733dabeadd..515293ea83a7 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"' -- 2.47.3