Accessing grafana cloud public dashboard through nginx

I want to give access to public dashboard created on grafana cloud through nginx so that I can track the frequency and number of times users are using it.
I have got a config under nginx which proxy to public dashboard. As far as the nginx is concerned it proxies the request but looks grafana is not responding to the request. here is my nginx config.

set $grafana;
location /path {
client_max_body_size 1M;

rewrite /path/(.*)$ /public-dashboards/$1 break;

proxy_set_header Host $grafana;
proxy_pass https://$grafana;