Rabbit Monitor
Rabbit Monitor is a simple program that fetches your computer data every 5 seconds (By default) and create /metrics API endpoint for other programs to collect data from it.
Required packages:
- quart
- psutil
- argparse
API Endpoints:
- /metrics (Support Prometheus)
Installation (Python and PIP required)
# Install Python modules
pip install quart psutil argparse
# Install Rabbit Monitor
pip install rabbitmonitor
# Start monitoring with
python3 -m 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.
WARNING: Make sure to change the User to the one that have installed pip packages.
[Unit]
Description=Rabbit Monitor
After=network.target
[Service]
Type=simple
User=root
ExecStart=python3 -m rabbitmonitor
TimeoutStartSec=0
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Then, run the commands below to reload systemd and start Rabbit Monitor.
systemctl enable --now 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/16275
Metadata
Release files for rabbitmonitor 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rabbitmonitor-2.0.0.tar.gz | 16.4 kB | Without provenance | Details for rabbitmonitor-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rabbitmonitor-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for rabbitmonitor-2.0.0-py3-none-any.whl |
Total release size: 33.3 kB
Release files / rabbitmonitor-2.0.0.tar.gz
| Download URL | rabbitmonitor-2.0.0.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d71dace9beaee8ee167c4bd44bc00178999ca74530d7bca2df0d03e6819bc6d9
|
|
BLAKE2b-256 checksum How to use checksums |
0b8b1cd481c56df8a6ab74df9c2ac3f940e5071a128534b72952fc8b4878487c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / rabbitmonitor-2.0.0-py3-none-any.whl
| Download URL | rabbitmonitor-2.0.0-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d3429dc11fe08000f62f85fa07d7e589dd60afc0da45d915b5be25e78d19498
|
|
BLAKE2b-256 checksum How to use checksums |
a09cc32ea5b9064b37ddc621664d733bb99c1efc2dc63467073f1b7d5f49dba5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for rabbitmonitor 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.