Changing Grafana port

Eric Miller picture Eric Miller · Feb 3, 2015 · Viewed 24.6k times · Source

I currently have InfluxDB feeding dashboards in Grafana. I will eventually be deploying this stack on a server.

However, the default port for Grafana is 80. I must change this port, but I don't know how. Can anyone help out?

Thanks.

Answer

sjMalik picture sjMalik · Jun 15, 2018

Not only change in /etc/grafana/grafana.ini you have to change in /usr/share/grafana/conf/defaults.ini and /usr/share/grafana/conf/sample.ini files. Just search 3000 port(which is default port for grafana) in these three files and replace it with your preferred port.