Include and serve static prometheus web UI in admin portal #3303
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which issue this PR addresses:
Fixes ARO-4823
What this PR does / why we need it:
Bundles static Prometheus Web UI in ARO Admin Portal, and serves the bundled UI rather than proxying the in-cluster Prometheus UI. The Prometheus API is proxied the same as it has been.
This allows ARO SRE to continue using the Prometheus UI on OCP 4.13+ clusters, which remove the in-cluster bundled UI.
Note that this change introduces a few regressions and concerns:
TITLE_PLACEHOLDER
.Test plan for issue:
This change was tested manually. This change was run locally as well as in int.
/graph
) even on <4.11 clusters.This change, as well as an ARO 4.13 cluster, are currently live in the int environment. If you have access to the environment (see https://msazure.visualstudio.com/AzureRedHatOpenShift/_wiki/wikis/ARO.wiki/494771/INT-Environment#) you can validate this yourself as well.
Is there any documentation that needs to be updated for this PR?
A simple summary of this change is included in docs/admin-portal.md.