I have grafana in docker with port mapping to the host (http://localhost:2000) - it works well
But I want to proxy it through nginx.
I have configured nginx to proxy all requests to the grafana instance
when I open http:grafana.localhost, which proxies to grafana - I see grafana interface without any error and can successfully test prometheus datasource with server access, but there is no any dashboards although local grafana version has them!
I would say you have wrong expectation. Difference is only recent viewed dashboards section and I would expect they are stored in the cookie which belongs to the domain. So if you are accessing the same Grafana instance through different domains, then you will have independent cookie for each domain -> independent recent viewed dashboards sections.
You have to list dashboards in the panel for example with Dashboard List panel, then you can prove that you are really “loosing” dashboards.
It sounds like you have Grafana running in a Docker container, and you’re trying to proxy it through Nginx. You’ve configured Nginx to proxy all requests to the Grafana instance, but when you access the Grafana interface through the proxy, the dashboards are missing.
One potential issue could be that the proxy is not passing through the correct headers or cookies, causing the dashboards to not load correctly. Double check your nginx configuration and make sure that it is properly forwarding the headers and cookies from the client to the Grafana container. Another solution you can look into is using a private proxy provider for your nginx proxy to ensure that all the data is being passed through the proxy correctly and securely.