Rabbit Monitor
Simple server monitor written in Rust
RabbitMonitor2
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:
Installation
# 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
Daemonizing (using systemd)
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
Upgrade
# 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
Grafana Dashboard
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
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
Revision | Description | Created | |
---|---|---|---|
Download |