A comprehensive monitoring solution for QUIL nodes that tracks earnings, shard processing metrics, and sends daily reports via Telegram.
- 📊 Real-time monitoring of node performance and earnings
- 💰 Automatic QUIL/USD price tracking
- ⏱️ Detailed shard processing metrics and categorization
- 🚨 Telegram alerts for performance issues
- 📱 Daily summary reports via Telegram
- 📈 CSV export for historical data analysis
- 🎨 Color-coded terminal output
- 🤖 Automation support via cron
- Wget py script in your node folder:
wget https://raw.githubusercontent.com/wolfcubecho/quil-monitor/main/quil_monitor.py && chmod +x quil_monitor.py
- Install requirements:
pip3 install requests
- Set up Telegram notifications:
sudo python3 quil_monitor.py --setup-telegram
- Run the monitor:
sudo python3 quil_monitor.py
- Message @BotFather on Telegram to create a new bot
- Get your chat ID from @userinfobot
- Run the setup command or manually configure in the script:
TELEGRAM_CONFIG = {
'bot_token': 'YOUR_BOT_TOKEN',
'chat_id': 'YOUR_CHAT_ID',
'node_name': 'Node-1',
'enabled': True,
'daily_report_hour': 0,
'daily_report_minute': 5
}
Receives a daily summary including:
- Current QUIL balance and USD value
- Daily earnings and comparison to average
- Shard processing statistics
- Performance metrics
- Real-time QUIL earnings monitoring
- Automatic USD conversion
- Daily, weekly, and monthly averages
- Historical earnings data
- Total shard count
- Processing time categorization:
- Fast (0-30s)
- Medium (30-60s)
- Slow (60s+)
- Average processing times
- Hourly shard rates
Configurable alerts for:
ALERT_THRESHOLDS = {
'processing_time_warning': 45, # seconds
'processing_time_critical': 60, # seconds
'earnings_deviation': 25 # percentage
}
Add to crontab (sudo crontab -e
):
# Run monitor every hour
0 * * * * cd /root/ceremonyclient/node && sudo python3 quil_monitor.py
# Export data daily
0 0 * * * cd /root/ceremonyclient/node && sudo python3 quil_monitor.py --export-csv
The script generates two CSV files:
-
quil_daily.csv
:- Date
- Balance
- Earnings
- USD values
- Shard counts
- Processing times
-
quil_shards.csv
:- Detailed shard metrics
- Processing time categories
- Performance statistics
- Python 3.6 or higher
- QUIL node with ceremonyclient service
- sudo access for log reading
- Internet connection for price data
requests
Python package
- Permission denied
Solution: Run with sudo
- No node binary found
Solution: Ensure script is in node directory
- Telegram configuration
Solution: Run --setup-telegram or check config values
- Missing historical data
Solution: Allow script to run for multiple days to build history
This script requires sudo access to read logs. Always review scripts requiring elevated privileges before running them.
Contributions are welcome! Please feel free to submit Issues or Pull Requests.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ for the QUIL community