File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4343- name : " RHELOSP-148698 Verify that the alert is active in Alertmanager"
4444 ansible.builtin.shell :
4545 cmd : >-
46- oc exec -it prometheus-default-0 -c prometheus -- /bin/sh -c 'wget --header \
46+ oc exec -it prometheus-default-0 -c prometheus -- /bin/sh -c 'curl -k -H \
4747 "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
48- https://default-alertmanager-proxy:9095/api/v1/alerts -q -O - ' | grep 'active' | grep 'Collectd metrics receive rate is zero' | wc -l
48+ https://default-alertmanager-proxy:9095/api/v1/alerts' | grep 'active' | grep 'Collectd metrics receive rate is zero' | wc -l
4949 register : cmd_output
5050 changed_when : false
5151 failed_when : cmd_output.stdout|int == 0
You can’t perform that action at this time.
0 commit comments