Migrate prometheus metric cards to Pajamas
What does this MR do and why?
-
Migrate card at app/views/shared/integrations/prometheus/_custom_metrics.html.haml -
Migrate card(s) at app/views/shared/integrations/prometheus/_metrics.html.haml, extension of MR #114361
Screenshots or screen recordings
before | after |
---|---|
![]() |
![]() |
How to set up and validate locally
Setup prometheus (Optional, if you have no Prometheus instance available)
- Run Prometheus as a Docker Container
docker run -p 9090:9090 prom/prometheus
- Go to
Admin > Settings > Network > Outbound Request
and tickAllow requests to the local network from webhooks and integrations
to allow connection with localhost. - Setup
<Project> > Integrations > Prometheus
with the docker container as your API_URL.
Create a custom metric
- Go to the Edit page for the Prometheus integration.
- Create a custom metric, use the default values from the hint/placeholder if you're unsure what values to put.
- The card should now contain a new custom metric.
Card states to check
- Empty Metric (The default view)
- w/ Custom Metric (Follow steps above)
- w/ Loader
- w/ Flash (During load, press the
x
thing besides the address bar that prevent the page to completely load).
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Fixes #367124 (closed), Fixes #394910 (closed)