InfluxDB metrics is visible in frontend UI. How to restrict it?

We have installed the InfluxDB time series database and we would like to restrict users to access /metrics /debug/pprof/all and several other sensitive URLs which don’t require login.

Can someone please suggest a way how we can restrict them apart from the actual DB monitoring UI running by default on 8086 port?

Team, any solution for this? I am seeking some help from the community!