
Change Grafana Default Port
Article : https://medium.com/grafana-tutorials/change-grafana-default-port-46ba53d628e9
I change the default Grafana web server port from 3000 to 443 since I now have an SSL certificate bound which I setup in https://medium.com/grafana-tutorials/adding-ssl-to-grafana-eb4ab634e43f
Port 443 is the default port used when you type a https:// url into the browser. Currently my Grafana Server is accessed via adding the port number to the URL, I want to access it by not needing to add the port number 3000 to the end of the URL.
You have the option to change the port number to 443 in the /etc/grafana.ini file, but since Grafana doesn’t have root privileges in Linux, it will fail to restart when trying to serve from port 443. So instead of giving the Grafana process itself escalated root privileges which would make it less secure, I use the iptables prerouting method.
# sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 3000
The iptables prerouting method will redirect any external tcp requests to port 443 onto the internal port 3000 which the Grafana server process is already listening on.
Other Videos By SBCODE
2020-08-17 | Adapter Design Pattern |
2020-08-17 | Mediator Design Pattern |
2020-08-17 | Iterator Design Pattern |
2020-08-17 | Observer Pattern |
2020-08-17 | Graph Non Time Series Data in Grafana 6 |
2020-08-17 | Grafana : Bind SSL to your Grafana Nginx Proxy |
2020-08-17 | Grafana : Reverse Proxy Grafana with Nginx |
2020-08-17 | Grafana : Point a Domain Name to your Grafana Server |
2020-08-17 | Grafana : Install and Start Grafana 7 |
2020-08-16 | Threejs TypeScript : Introduction |
2020-08-15 | Change Grafana Default Port |
2020-08-09 | Importing Three.js as a Module |
2020-08-08 | Factory reset TP-Link WPA281 and AV500 Powerline Wifi Extenders |
2020-07-12 | Setup SNMP Traps : Zabbix 5 |
2020-07-08 | Setup SNMP Daemon on MacOSX |
2020-06-29 | Zabbix : Execute PowerShell Scripts to Check Windows Updates |
2020-06-08 | Zabbix Agent Auto Registration : Zabbix 5 |
2020-06-08 | Zabbix : Item Pre-Processing With Regex In Zabbix 5 |
2020-06-07 | Zabbix : Slack Media Type |
2020-05-14 | Threejs TypeScript : MTL Loader |
2020-05-10 | Threejs TypeScript : Using tween.js and the THREE.AnimationMixer |