Srikanth Vavilapalli | b66304b | 2017-01-19 20:25:19 +0000 | [diff] [blame] | 1 | --- |
| 2 | - name: Validate Monitoring URL is completely UP and metrics contain vSG related metrics |
| 3 | uri: |
Srikanth Vavilapalli | 71aa28d | 2017-01-31 00:43:13 +0000 | [diff] [blame] | 4 | url: "{{monitoringservice.results[1].json[0].ceilometer_ssh_proxy_url}}v2/meters" |
Srikanth Vavilapalli | b66304b | 2017-01-19 20:25:19 +0000 | [diff] [blame] | 5 | 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) and ('exampleservice' in metrics.content)" |
| 11 | retries: 5 |
| 12 | delay: 10 |
| 13 | |
| 14 | - name: assert exampleservice metrics exampleservice.apache.total.accesses are present |
| 15 | assert: |
| 16 | that: "'exampleservice.apache.total.accesses' in metrics.content" |
| 17 | msg: "Metrics does not contains exampleservice.apache.total.accesses related statistics" |
| 18 | |
| 19 | - name: assert exampleservice metrics exampleservice.apache.uptime are present |
| 20 | assert: |
| 21 | that: "'exampleservice.apache.uptime' in metrics.content" |
| 22 | msg: "Metrics does not contains exampleservice.apache.uptime related statistics" |
| 23 | |
| 24 | - name: assert exampleservice metrics exampleservice.apache.reqpersec are present |
| 25 | assert: |
| 26 | that: "'exampleservice.apache.reqpersec' in metrics.content" |
| 27 | msg: "Metrics does not contains exampleservice.apache.reqpersec related statistics" |
| 28 | |