Grafana Cloud for Raspberry Pi (RPi-Monitor alternative)
For years I've used the RPi-Monitor app to monitor my Raspberry Pi, but like the torrent client replacement, I'm trying something new this year. I found a solution where we send the data to the cloud instead of storing it locally, which has both advantages and disadvantages.
Advantages compared to RPi-Monitor
- Available stats from outside of the local network
- Nice dashboard and graphs
- Does not take up storage space on the Raspberry Pi
- Only 14 days history with a Free plan
Disadvantages compared to RPi-Monitor
- Not easy to implement temperature monitoring
- You can't monitor your Raspberry Pi without an Internet connection
- Monitoring depends on the availability of the Grafana service
- Sign Up on Grafana Cloud (Free account)
- Go to your custom Grafana dashboard
- Select "Integrations and Connections" from the left menu
- Choose "Linux Server"
- Select "Other Distribution" as an OS
- Run these commands instead of step #3 ones:
curl -O -L "https://github.com/grafana/agent/releases/latest/download/agent-linux-armv7.zip"
chmod a+x "agent-linux-armv7"
- Continue with #4 (there is a copy button, use it)
- Try the agent by running it in the terminal:
- Press "Test integration", and wait a few minutes (be patient)
- If it works, you will see something like that:
- Check the Dashboard. If you like it, let's continue
- Create a user for Grafana Agent
sudo useradd --no-create-home --shell /bin/false grafana-agent
- Create service file
cat <<EOF > /etc/systemd/system/grafana-agent.service
- Start and enable the service
sudo systemctl daemon-reload
sudo systemctl start grafana-agent.service
sudo systemctl enable grafana-agent.service
- That's all, done.