I am struggling to setup grafana(v7.0.3) behind reverse proxy(nginx ingress controller nginx-ingress-controller:0.25.0) under dedicated path e.g MYHOST.com/grafana . I deploy the prometheus and grafana using the prometheus operator helm chart (but it actually use the standard grafana helm chart as dependency)
Need help on how to configure grafana.ini and its Ingress object to make grafana accessible on http://MYHOST/grafana?
Update
I found the solution.
You must use this in the grafana.ini root_url: ‘%(protocol)s://%(domain)s:%(http_port)s/grafana’ and not with hard coded setting of port. And also the port must be the internal port of grafana.
Hi,
Installed kube-prometheus operator with Helm and modified values.yaml with recommended changes for Ingress URL. I have tried different options but still getting following message when I go to mysb.grafanasite.com. Any clues what else needs to be fixed?
**If you're seeing this Grafana has failed to load its application files**
1. This could be caused by your reverse proxy settings.
2. If you host grafana under subpath make sure your grafana.ini root_url setting
includes subpath. If not using a reverse proxy make sure to set
serve_from_sub_path to true.
3. If you have a local dev build make sure you build frontend using: yarn start, yarn
start:hot, or yarn build
4. Sometimes restarting grafana-server can help
I see below settings in grafana.ini file inside Grafana pod.