blob: 0da4bf0e0b0ab9c8c3bb8f6bddeb1e5e53dd98a0 [file] [log] [blame]
Srikanth Vavilapalli1dfc9c82016-12-20 02:58:32 +00001---
2- name: Validate Monitoring URL is completely UP and valid metrics are returned
3 uri:
Srikanth Vavilapalli71aa28d2017-01-31 00:43:13 +00004 url: "{{monitoringservice.results[1].json[0].ceilometer_ssh_proxy_url}}v2/meters"
Srikanth Vavilapalli1dfc9c82016-12-20 02:58:32 +00005 status_code: 200
6 return_content: yes
7 body_format: json
8 HEADER_Content-Type: "application/json"
9 register: metrics
10 until: "(metrics.status == 200) and (metrics.content|from_json|length>0)"
11 retries: 5
12 delay: 10
13
14- name: assert disk related infra metrics are present
15 assert:
16 that: "'disk.write.requests' in metrics.content"
17 msg: "Metrics does not contains disk related statistics"
18
19- name: assert memory related infra metrics are present
20 assert:
21 that: "'memory' in metrics.content"
22 msg: "Metrics does not contains memory related statistics"
23
24- name: assert cpu related infra metrics are present
25 assert:
26 that: "'cpu' in metrics.content"
27 msg: "Metrics does not contains cpu related statistics"
28