Follow these steps to install, configure, and start Grafana on a dedicated monitoring server such as pgmon:
- Install the Grafana package downloaded from Grafana Labs on pgmon as a root-enabled user as recommended by your Linux distribution's packaging system.
- Enable and start Grafana with systemctl:
sudo systemctl enable grafana
sudo systemctl start grafana
- Direct a browser to the default port (3000) on the monitor server to log in to the interface. For our example, this would be: http://pgmon:3000/.
- Enter the user admin and password admin and click Log In.
- Change the password as directed and click Save.
- Click Add data source.
- Select the InfluxDB option.
- Enter http://pgmon:8086/ as the URL.
- Set the Database to telegraf