Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing Grafana port

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.

like image 909
Eric Miller Avatar asked Feb 03 '15 16:02

Eric Miller


People also ask

What port is Grafana on?

Firewall Configuration By default, Grafana runs on port 3000.

What is the port number through which Grafana service is exposed to outside network?

Since Grafana doesn't come with TLS by default, we'll use Caddy to obtain a certificate for Grafana by tunnelling out port 80 and 443 instead of the plaintext HTTP port 3000. Your Grafana dashboard may be deployed inside Kubernetes, or as a Docker container.


1 Answers

Here's the easiest way I found.

docker run -d \
-p 2345:2345 \
--name grafana \
-e "GF_SERVER_HTTP_PORT=2345" \
grafana/grafana

See the documentation here.

https://grafana.com/docs/grafana/latest/installation/docker/#configuration

like image 147
Jason Kim Avatar answered Sep 22 '22 03:09

Jason Kim