]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/task: update alertmanager endpoints version
authorNizamudeen A <nia@redhat.com>
Wed, 21 Aug 2024 05:36:15 +0000 (11:06 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 7 Nov 2024 12:31:55 +0000 (18:01 +0530)
the v1 endpoint is deprecated and v2 is suggested to use.

Fixes: https://tracker.ceph.com/issues/67183
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit ac998b58487f6f9176b7f934ed61ae57e59c2ee5)

qa/suites/orch/cephadm/workunits/task/test_monitoring_stack_basic.yaml

index 89733dabeadd112442b937669dbf655443916fb3..515293ea83a710966f576f52613d30af29bfd504 100644 (file)
@@ -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"'