Raspberry Pi system monitoring

1. Contents of this article

We will introduce how to install Netdata as a method to monitor the system status of Raspberry Pi such as CPU and memory. Netdata is a mechanism that starts an HTTP server in a Docker container and accesses it with a browser from a Windows PC in the network to monitor it. If you can use Docker, you can use it on Linux environment even if it is not Raspberry Pi.

1-1. Usage environment

2. Netdata installation procedure and monitoring method

  1. Install Docker on Raspberry Pi
$ curl -sSL https://get.docker.com | sh
  1. Add user to docker group
$ sudo usermod -aG docker pi
  1. Checking the operation of Docker
$ docker run hello-world
  1. Start Netdata
docker run -d --name=netdata \
  -p 19999:19999 \
  -v /proc:/host/proc:ro \
  -v /sys:/host/sys:ro \
  -v /var/run/docker.sock:/var/run/docker.sock:ro \
  --cap-add SYS_PTRACE \
  --security-opt apparmor=unconfined \
  netdata/netdata
  1. Access from a browser (http: // : 19999 /) Changes in CPU, RAM, etc. are updated in real time (at intervals of about 1 second) on the browser. Netdata画面.png

After docker run, you can stop and restart Netdata by following the steps below.

$ docker stop netdata
$ docker start netdata

3. Uninstall Netdata

Since Netdata itself only imports Docker images, you only need to uninstall Docker.

$ sudo apt purge docker-ce
$ sudo rm -rf /var/lib/docker
$ sudo apt autoremove --purge

4. In the end

We have introduced Netdata to check the system status of Raspberry Pi in real time. Since you can export and print from the upper right of the page, you can record snapshots with these functions.

I tried to install it on Raspberry Pi 1, but the following message was displayed and the Docker container could not be started. It doesn't seem to support ARMv6. Please note that the same may be true for Raspberry Pi Zero.

5. Related links

Recommended Posts

Raspberry Pi system monitoring
Indoor monitoring using Raspberry Pi
Raspberry Pi backup
Pet monitoring with Rekognition and Raspberry pi
What is Raspberry Pi?
GPGPU with Raspberry Pi
pigpio on Raspberry pi
Raspberry Pi video camera
Raspberry Pi Bad Knowledge
DigitalSignage with Raspberry Pi
Cython on Raspberry Pi
Introduced python3-OpenCV3 to Raspberry Pi
Raspberry Pi 4B initial setting
Mutter plants with Raspberry Pi
Install Raspberry Pi OS (Raspbian)
I talked to Raspberry Pi
Raspberry Pi + Python + OpenGL memo
Raspbian initial settings (Raspberry Pi 4)
Introduced pyenv on Raspberry Pi
Use NeoPixel on Raspberry Pi
Install TensorFlow 1.15.0 on Raspberry Pi
Production of temperature control system with Raspberry Pi and ESP32 (1)
Port FreeRTOS to Raspberry Pi 4B
[Raspberry Pi] Stepping motor control with Raspberry Pi
Testing uart communication on Raspberry Pi
Use vl53l0x with Raspberry Pi (python)
raspberry pi 1 model b, node-red part 17
Servo motor control with Raspberry Pi
USB over ethernet using Raspberry pi
MQTT on Raspberry Pi and Mac
raspberry pi 4 centos7 install on docker
Serial communication with Raspberry Pi + PySerial
Install ghoto2 on Raspberry Pi (memo)
Output from Raspberry Pi to Line
OS setup with Raspberry Pi Imager
Raspberry pi initial setting (for myself)
Try using ArUco on Raspberry Pi
Try L Chika with raspberry pi
OpenCV installation procedure on Raspberry Pi
VPN server construction with Raspberry Pi
Try moving 3 servos with Raspberry Pi
Power on / off Raspberry pi on Arduino
Detect switch status on Raspberry Pi 3
03. Pi
Using a webcam with Raspberry Pi
L Chika on Raspberry Pi C #
[Raspberry Pi] Changed Python default to Python3
Build wxPython on Ubuntu 20.04 on raspberry pi 4
Production of temperature control system with Raspberry Pi and ESP32 (2) Production of transmission device
Put ROS melodic in Raspberry Pi 4 / Buster
Measure SIM signal strength with Raspberry Pi
Connect two USB cameras to Raspberry Pi 4
"Honwaka Notification Lamp" on Raspberry Pi Part 2
[Raspberry Pi] Add a thermometer and a hygrometer
Detect "brightness" using python on Raspberry Pi 3!
Raspberry Pi Security Infrared Camera (Python Edition)
Hello World with Raspberry Pi + Minecraft Pi Edition
"Honwaka Notification Lamp" on Raspberry Pi Part 1
Build a Tensorflow environment with Raspberry Pi [2020]
Enable UART + serial communication on Raspberry Pi
Make Raspberry Pi speak Japanese using OpenJtalk