The main objective of this README
is to provide a guide on setting up Grafana on a Raspberry Pi. It includes installation steps, server startup, configuration of Grafana, adding a connection for JSON, and configuring the Grafana.ini file.
export HOSTNAME=192.168.178.69
export REMOTE_USER=pi
ssh ${REMOTE_USER}@${HOSTNAME}
Step 1: Follow the steps in the Grafana documentation to install Grafana on Raspberry-Pi
sudo /bin/systemctl enable grafana-server
sudo /bin/systemctl start grafana-server
sudo shutdown -r now
export HOSTNAME=192.168.178.69
open http://${HOSTNAME}:3000
Login with admin
/admin
.
Select JSON
.
Verify the Grafana.ini
configuration to more options for an initial setup.
One important topic is the time format configuration.
sudo nano /etc/grafana/grafana.ini
- Data format for the
time
:
# For information on what formatting patterns that are supported https://momentjs.com/docs/#/displayi>
# Default system date format used in time range picker and other places where full time is displayed
;full_date = YYYY-MM-DD HH:mm:ss
# Used by graph and other places where we only show small intervals
;interval_second = HH:mm:ss
;interval_minute = HH:mm
;interval_hour = MM/DD HH:mm
;interval_day = MM/DD
;interval_month = YYYY-MM
;interval_year = YYYY
You can follow the steps in this article Raspberry Pi Monitoring