Adding custom Grafana URL to PMK UI
This feature is supported PMK 5.11 onwards. Release of kube-prometheus-stack
v62 comes with upgraded Grafana v11.
Before PMK 5.11, Grafana (version v7) UI was served through the qbert proxy and a link to Grafana was available from the Platform9 UI. Since PMK 5.11, the upgraded Grafana (version v11) UI is not accessible through the qbert proxy because of a limitation of Grafana. The following procedure describes how to configure the Platform9 UI to find the Grafana service and provide a link to the Grafana dashboard.
Once the configuration has been updated to PMK 5.11, you can attach a custom URL to the Grafana link section in the user interface.
To attach a custom URL, you need to add a annotation called url (http or https) which points to the custom URL in the Grafana service.
Below is the format in which it should be added:
apiVersion v1
kind Service
metadata
annotations
meta.helm.sh/release-name proms
meta.helm.sh/release-namespace default
url https //grafana.abc.company.net
creationTimestamp"2024-09-24T09:17:50Z"
labels
app.kubernetes.io/instance proms
app.kubernetes.io/managed-by Helm
app.kubernetes.io/name grafana
app.kubernetes.io/version10.1.5
helm.sh/chart grafana-6.60.6
.....................
.....................
This can be achieved by editing the grafana service manually or adding the url as an annotation to the helmchart values.yaml before applying the helm chart as shown in the comment pointed in this file.
This is supported for both add-on operator and helm deployments of Grafana. Once the annotations get added to the Grafana service, the Grafana link
starts appearing the cluster section and will be attached to the custom URL given in the annotation