-
Story
-
Resolution: Won't Do
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
-
As a developer, I'd like the metric validation dashboard to be more comprehensive and useful, so that I can easily validate and debug PromQL used by swatch
Instead of implementing the dashboard to be specific to saas-based offerings, the dashboard should be written to generate the exact PromQL queries that swatch would based on the same parameters swatch uses.
The dashbord layout should be the same as the current metrics validation dashboard (https://github.com/RedHatInsights/rhsm-subscriptions/blob/main/.rhcicd/grafana/grafana-dashboard-subscription-watch-metric-validation.configmap.yaml ). The dashboard should be defined in that file, replacing the existing dashboard. Instructional language in the dashboard will need to be updated to point to the script (see below).
A script should generate URLs that can be followed to the dashboard for each configured product in swatch. The script should take the grafana base URL as an argument and then output links to see the PromQL results graphed for each configured product, based on swatch-product-configuration yaml. This script should live in the bin folder of the rhsm-subscriptions repo, and should work something like:
bin/dashboard-links https://grafana.example.com rosa: https://grafana.example.com/d/lhpiu2v4k/subscription-watch-metric-validation?orgId=1&var-metadataMetric=ocm_subscription&var-metric=cluster%3Ausage%3Aworkload%3Acapacity_physical_cpu_hours [ ... more lines for each product configured for prometheus ]
Note that the script may need to provide additional variables in the URL, and due to grafana templating limitations, it may be necessary to have some repetition in the vars themselves.
DONE:
- dashboard deployed to prod
- script added to rhsm-subscriptions repo.