This project provides scripts to temporarily increase the polling interval for UPS voltage monitoring on a farm server, enabling more frequent data collection and visualization.
- A script to configure NUT server, Prometheus, and Grafana for high-frequency UPS voltage data polling (once per second).
- Enable faster polling:
./grafana_poll_faster.sh fast- Restore default monitoring configuration:
./grafana_poll_faster.sh back- A script to poll local UPS voltage metrics and log changes.
- Polls the /ups_metrics endpoint every 0.04 seconds
- Logs voltage data to /tmp/ directory
- Records only voltage changes to minimize data storage
Run for default duration (one hour):
./local_poll.shRun in background for one hour:
./local_poll.sh &Specify custom polling duration (in seconds) and run in the background:
./local_poll.sh 3600 &- Requires access to local UPS metrics endpoint
- NUT server
- Prometheus
- Grafana
- Designed for temporary, high-frequency monitoring
- Helps track rapid voltage changes