XHR Error (404 Not Found) Plug in error

I configured root url as http://XXXX.com/grafana in grafana.ini configuration. We are getting above error while accessing on http://XXXX.com/grafana.
what should be the sub_filter part? We have some other other applications configured in nginx where subfilters are mentioned like this.