In InfluxDB V1.x, you could try to update these configurations:
pprof-enabled = true
pprof-auth-enabled = false
debug-pprof-enabled = false
More details could be found here.
In InfluxDB V2.X (the link you shared indicates that you are probably using V2.X),
you could try following config options for controlling when the pprof endpoint was enabled:
pprof-disabled: true
metrics-disabled: true
See more details here.
To be safe you could also limit access to those urls to ::1/127.0.0.1 to be sure in Nginx:
# suppose you have InfluxDB UI endpoint as below
location /influxdb2/ {
proxy_pass http://localhost:8086;
}
location /influxdb2/metrics/debug/pprof/all {
allow 127.0.0.1;
allow ::1;
deny all;
proxy_pass http://localhost:8086//metrics/debug/pprof/all ;
}
# some other urls restrictions