Skip to content

Commit

Permalink
enhancement: add monitoring test to check rhoai dashboard metrics by …
Browse files Browse the repository at this point in the history
…code
  • Loading branch information
CFSNM committed Jan 13, 2025
1 parent 7f5117a commit 4af3679
Showing 1 changed file with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ Test Metric Existence For "Rhods_Aggregate_Availability" On ODS Prometheus
@{list_values} = Create List 1 0
Should Contain ${list_values} ${resp.json()["data"]["result"][0]["value"][-1]}


Test Targets Are Available And Up In RHOAI Prometheus
[Documentation] Verifies the expected targets in Prometheus are available and up running
[Tags] Sanity
Expand Down Expand Up @@ -123,6 +122,33 @@ Test Targets Are Available And Up In RHOAI Prometheus
List Should Contain Value ${targets} user_facing_endpoints_status_rhods_dashboard
List Should Contain Value ${targets} user_facing_endpoints_status_workbenches

Test RHOAI Dashboard Metrics By Code Are Defined

Check warning

Code scanning / Robocop

Test case '{{ test_name }}' is too long ({{ test_length }}/{{ allowed_length }}) Warning test

Test case 'Test RHOAI Dashboard Metrics By Code Are Defined' is too long (40/20)
[Documentation] Verifies the RHOAI Dashboard Metrics By Code Are Defined and show accurate values
[Tags] Sanity
... Tier1
... ODS-195
... RHOAIENG-13261
... Monitoring
Skip If RHODS Is Self-Managed
${response_by_code}= Prometheus.Run Query

Check warning

Code scanning / Robocop

The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test

The assignment sign is not consistent within the file. Expected ' =' but got '=' instead

Check notice

Code scanning / Robocop

Variable '{{ name }}' is assigned but not used Note test

Variable '${response_by_code}' is assigned but not used
... pm_url=${pm_url}
... pm_token=${pm_token}
... pm_query=sum(haproxy_backend_http_responses_total {route='rhods-dashboard'}) by(code)
${response_5xx}= Prometheus.Run Query

Check warning

Code scanning / Robocop

The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test

The assignment sign is not consistent within the file. Expected ' =' but got '=' instead

Check notice

Code scanning / Robocop

Variable '{{ name }}' is assigned but not used Note test

Variable '${response_5xx}' is assigned but not used
... pm_url=${pm_url}
... pm_token=${pm_token}
... pm_query=sum(haproxy_backend_http_responses_total{route='rhods-dashboard', code='5xx'})
${response_2xx}= Prometheus.Run Query

Check warning

Code scanning / Robocop

The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test

The assignment sign is not consistent within the file. Expected ' =' but got '=' instead

Check notice

Code scanning / Robocop

Variable '{{ name }}' is assigned but not used Note test

Variable '${response_2xx}' is assigned but not used
... pm_url=${pm_url}
... pm_token=${pm_token}
... pm_query=sum(haproxy_backend_http_responses_total{route='rhods-dashboard', code='2xx'})
${response_total}= Prometheus.Run Query

Check warning

Code scanning / Robocop

The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test

The assignment sign is not consistent within the file. Expected ' =' but got '=' instead

Check notice

Code scanning / Robocop

Variable '{{ name }}' is assigned but not used Note test

Variable '${response_total}' is assigned but not used
... pm_url=${pm_url}
... pm_token=${pm_token}
... pm_query=sum(haproxy_backend_http_responses_total{route='rhods-dashboard'}
${value}= Set Variable ${response.json()["data"]["result"][0]["value"][-1]}

Check warning

Code scanning / Robocop

The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test

The assignment sign is not consistent within the file. Expected ' =' but got '=' instead
${value}= Convert To Number ${value} ${precision}

Check warning

Code scanning / Robocop

The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test

The assignment sign is not consistent within the file. Expected ' =' but got '=' instead

Check notice

Code scanning / Robocop

Variable '{{ name }}' is assigned but not used Note test

Variable '${value}' is assigned but not used


*** Keywords ***
Begin Metrics Web Test
Expand Down

0 comments on commit 4af3679

Please sign in to comment.