Skip to content

Commit ac998b5

Browse files
committed
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 <[email protected]>
1 parent b251c8a commit ac998b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ tasks:
6161
curl -s http://${PROM_IP}:9095/api/v1/alerts
6262
curl -s http://${PROM_IP}:9095/api/v1/alerts | jq -e '.data | .alerts | .[] | select(.labels | .alertname == "CephMonDown") | .state == "firing"'
6363
# check alertmanager endpoints are responsive and mon down alert is active
64-
curl -s http://${ALERTM_IP}:9093/api/v1/status
65-
curl -s http://${ALERTM_IP}:9093/api/v1/alerts
66-
curl -s http://${ALERTM_IP}:9093/api/v1/alerts | jq -e '.data | .[] | select(.labels | .alertname == "CephMonDown") | .status | .state == "active"'
64+
curl -s http://${ALERTM_IP}:9093/api/v2/status
65+
curl -s http://${ALERTM_IP}:9093/api/v2/alerts
66+
curl -s http://${ALERTM_IP}:9093/api/v2/alerts | jq -e '.[] | select(.labels | .alertname == "CephMonDown") | .status | .state == "active"'

0 commit comments

Comments
 (0)