Rabbit Monitor is a simple program written in Rust that collects computer stats every 3 seconds (By default) and create /metrics API endpoint for other programs like Prometheus, Grafana... to collect data and display it.
API Endpoints:
# Download the binary
wget https://github.com/Rabbit-Company/RabbitMonitor2/releases/download/v4.1.0/rabbitmonitor
# Set file permissions
sudo chmod 777 rabbitmonitor
# Place the binary to `/usr/local/bin`
sudo mv rabbitmonitor /usr/local/bin
# Start the monitor
rabbitmonitor
Running Rabbit Monitor in the background is a simple task, just make sure that it runs without errors before doing this. Place the contents below in a file called rabbitmonitor.service
in the /etc/systemd/system/
directory.
[Unit]
Description=Rabbit Monitor
After=network.target
[Service]
Type=simple
User=root
ExecStart=rabbitmonitor
TimeoutStartSec=0
TimeoutStopSec=2
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Then, run the commands below to reload systemd and start Rabbit Monitor.
systemctl enable --now rabbitmonitor
# Stop service
systemctl stop rabbitmonitor
# Download Rabbit Monitor
wget https://github.com/Rabbit-Company/RabbitMonitor2/releases/download/v4.1.0/rabbitmonitor
sudo chmod 777 rabbitmonitor
sudo mv rabbitmonitor /usr/local/bin
# Start service
systemctl start rabbitmonitor
Rabbit Monitor has a pre-made Grafana dashboard that looks like this:
It can be installed from official Grafana website: https://grafana.com/grafana/dashboards/18562