diff --git a/ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot b/ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot index 7586c2221..7e2f23644 100644 --- a/ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot +++ b/ods_ci/tests/Tests/0100__platform/0102__monitor_and_manage/0101__metrics/0101__metrics.robot @@ -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 @@ -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 + [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 + ... 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 + ... 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 + ... 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 + ... 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]} + ${value}= Convert To Number ${value} ${precision} + *** Keywords *** Begin Metrics Web Test