Grafana icons or images are not loading under reverse proxy

  • What Grafana version and what operating system are you using?
    v9.5.0 grafana-enterprise docker image in ubuntu

  • What are you trying to achieve?
    setup Grafana with prometheus for monitoring

  • How are you trying to achieve it?
    using docker compose under nginx reverse proxy

  • What happened?
    Images (icons) are not loading when running under nginx reverse proxy, throwing 404. grafana sub path is used.
    I have even tried with the default location, still it is not working.

  • What did you expect to happen?
    Images should be loaded without issues

  • Can you copy/paste the configuration(s) that you are having problems with?
    Followed these steps Run Grafana behind a reverse proxy | Grafana Labs

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    I see the url rewrite is not working for /grafana/public/img/grafana_icon.svg


  • Did you follow any online instructions? If so, what is the URL?

Turns out to be a misconfiguration from my side with nginx. Need to set a location for serving static content. Please close this. Thanks.