Skip to content

Commit

Permalink
Missed a few instances + lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
csibbitt committed Dec 6, 2023
1 parent 061448b commit bdad069
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions roles/client_side_tests/tasks/test_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Description: Query Prometheus for collectd_cpu_percent metrics and save the output into the file
ansible.builtin.shell:
cmd: >-
/usr/bin/curl -k {{prom_auth_string}} \
/usr/bin/curl -k {{ prom_auth_string }} \
-g https://{{ prom_url }}/api/v1/query? \
--data-urlencode 'query=collectd_cpu_percent {plugin_instance="0"}[1m]' \
--output /tmp/query_collectd_cpu_percent
Expand All @@ -20,7 +20,7 @@
# Description: Query Prometheus for ceph_ceph_bytes metrics and save the output into the file
ansible.builtin.shell:
cmd: >-
/usr/bin/curl -k {{prom_auth_string}} \
/usr/bin/curl -k {{ prom_auth_string }} \
-g https://{{ prom_url }}/api/v1/query? \
--data-urlencode 'query=collectd_ceph_ceph_bytes {plugin_instance="ceph-osd.1"}[1m]' \
--output /tmp/query_ceph_ceph_bytes
Expand All @@ -33,7 +33,7 @@
# Description: Query Prometheus for collectd_interface_if_packets_tx_total metrics and save the output into the file
ansible.builtin.shell:
cmd: >-
/usr/bin/curl -k {{prom_auth_string}} \
/usr/bin/curl -k {{ prom_auth_string }} \
-g https://{{ prom_url }}/api/v1/query? \
--data-urlencode 'query=collectd_interface_if_packets_tx_total {type_instance="base"}[1m]' \
--output /tmp/query_collectd_interface_tx_total
Expand All @@ -46,7 +46,7 @@
# Description: Query Prometheus for collectd_memory metrics and save the output into the file
ansible.builtin.shell:
cmd: >-
/usr/bin/curl -k {{prom_auth_string}} \
/usr/bin/curl -k {{ prom_auth_string }} \
-g https://{{ prom_url }}/api/v1/query? \
--data-urlencode 'query=collectd_memory {plugin_instance="base"}[1m]' \
--output /tmp/query_collectd_memory
Expand All @@ -59,7 +59,7 @@
# Description: Query Prometheus for collectd_load_longterm metrics and save the output into the file
ansible.builtin.shell:
cmd: >-
/usr/bin/curl -k {{prom_auth_string}} \
/usr/bin/curl -k {{ prom_auth_string }} \
-g https://{{ prom_url }}/api/v1/query? \
--data-urlencode 'query=collectd_load_longterm {plugin_instance="base"}[1m]' \
--output /tmp/query_load_longterm
Expand Down
4 changes: 2 additions & 2 deletions roles/test_sensubility/tasks/test_health_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
Description: Check that health status of container changed to 0
ansible.builtin.shell:
cmd: >-
/usr/bin/curl -k -H "Authorization: Bearer {{prom_token}}" \
/usr/bin/curl -k {{ prom_auth_string }}" \
-g https://{{ prom_url }}/api/v1/query? \
--data-urlencode 'query=last_over_time(sensubility_container_health_status{process="logrotate_crond",host="{{ groups['overcloud_nodes'][0] }}"}[10m])' \
| grep -oP '(?<="value":).*' | awk -F, '{ print $2 }' | grep -o '[0-9]\+' | grep 0 | wc -l
Expand Down Expand Up @@ -75,7 +75,7 @@
Description: Check that health status of container changed to 1
ansible.builtin.shell:
cmd: >-
/usr/bin/curl -k -H "Authorization: Bearer {{prom_token}}" \
/usr/bin/curl -k {{ prom_auth_string }}" \
-g https://{{ prom_url }}/api/v1/query? \
--data-urlencode 'query=last_over_time(sensubility_container_health_status{process="logrotate_crond",host="{{ groups['overcloud_nodes'][0] }}"}[10m])' \
| grep -oP '(?<="value":).*' | awk -F, '{ print $2 }' | grep -o '[0-9]\+' | grep 1 | wc -l
Expand Down

0 comments on commit bdad069

Please sign in to comment.