This is an old revision of the document!
File or Directory | Description |
---|---|
/etc/grafana/ | The Grafana configuration directory. |
/usr/sbin/grafana-cli | The Grafana CLI binary. |
/usr/sbin/grafana-server | The Grafana server binary. |
/usr/lib/systemd/system/grafana-server.service | The Grafana systemd unit file. |
/usr/share/grafana/ | The Grafana HTML, JS, CSS, font and other files. |
/var/lib/grafana/grafana.db | The Grafana SQLite3 database. |
/var/log/grafana/grafana.log | The Grafana log file. |
File or Directory | Description |
---|---|
/etc/default/grafana-server | The configuration file with environment files for the Grafana server. |
/etc/grafana/grafana.ini | The Grafana server configuration file. |
Manual pages:
user@host:~$
To install Grafana on Debian:
grafana-rpi
packages in the Grafana Debian repository are intended for the Raspberry Pi 1 and the Raspberry Pi Zero.
root@host:~$ apt-get install -y apt-transport-https wget root@host:~$ wget -q -O - https://packages.grafana.com/gpg.key | apt-key add - root@host:~$ echo "deb https://packages.grafana.com/oss/deb stable main" > /etc/apt/sources.list.d/grafana.list root@host:~$ apt-get update root@host:~$ apt-get install grafana
If a local IPTables firewall is active on the system running Grafana open the TCP port 3000
for access to the Grafana WebUI:
# Allow access to Grafana from local networks -A INPUT -p tcp -s <YOUR-NETWORK> --dport 3000 -j ACCEPT
and reload the IPTables rules:
root@host:~$ iptables-restore < iptables.conf
Navigate to http://your-grafana-host:3000/ in a Web browser.
Log into Grafana with the default credentials. User admin
and password admin
.
You will be prompted to change the password for the admin
user. Choose a reasonable strong password.
To start Grafana:
root@host:~$ systemctl enable grafana-server root@host:~$ systemctl start grafana-server
To stop Grafana:
root@host:~$ systemctl stop grafana-server
To check the status of Grafana:
root@host:~$ systemctl status grafana-server