Add/override grafana config map values

Hi, we have the replicated installer downloading prometheus for us. This includes grafana. How do we get different values into the configmap for grafana ?

Hello :wave: . Just to make sure i’m understanding, are you using our Embedded Installer kURL with Prometheus as an addon?

In the replicated portal, I just see it called as Kubernetes Installers. It does install the Kurl addons.

Understood. Can you give me a better idea of what configuration you’re wanting to change in the Prometheus addon for Grafana? Unfortunately, today the Prometheus addon doesn’t expose much for what you can configure at install time - https://kurl.sh/docs/add-ons/prometheus. However if you can give me a better idea of what your use case is and what you need to change, we may be able to help. For example, I know you can annotate a ConfigMap that you bring alongside your app in order to include additional dashboards - [kube-prometheus-stack] Document how to add a custom dashboard · Issue #1370 · prometheus-community/helm-charts · GitHub

We plan on changing the type of installation from nodePort to clusterIP. That’s an option in the installer. Then we’ll create in ingress for granafa that uses nginx. To use nginx we need to change the value of domain in the grafana config map and add root_url and serve_from_sub_path.

domain = 'dev-clone.redgate-platform.com'
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/
serve_from_sub_path = true

Thanks for the additional info. I don’t think we have the functionality necessary today for you to be able to do this. Would you mind creating a feature request for this at Replicated? Someone from our product team will see the request and then follow up from there.