Proof-of-Work Monitoring Toolkit
This folder ships a ready-to-use reference for operators that want automated visibility into EphemeralNet proof-of-work behaviour.
Contents
pow-alerts.yml: Prometheus alerting rules that watch handshake, announce, and store proof-of-work failure ratios and difficulty drifts. Drop the file into your Prometheusrule_fileslist (or add it to the configuration management template) and reload the server. The rules trigger warnings at 5–7% failure rates and escalate to critical if failures exceed 10–12%.grafana-pow-dashboard.json: Grafana dashboard definition that plots proof-of-work counters, failure ratios, and the currently advertised difficulty bits. Import it via Dashboards → Import and select your Prometheus datasource when prompted.
Quick Start
- Copy
pow-alerts.ymlinto the directory referenced by therule_filesstanza in your Prometheus configuration (for example/etc/prometheus/rules). - Run
promtool check rules pow-alerts.ymlto validate the syntax, then reload Prometheus (kill -HUP $(pidof prometheus)on Linux or use the administrative API). - Import
grafana-pow-dashboard.jsoninto Grafana. Set theDatasourcevariable to the Prometheus instance that scrapes your EphemeralNet daemon'sMETRICSendpoint. - Set up Grafana alerting or hook the Prometheus alerts into your paging system (PagerDuty, OpsGenie, Slack, etc.).
Customisation
- Tweak the failure thresholds in
pow-alerts.ymlto match your SLA. The defaults align with the tuning guidance indocs/performance-tuning.md. - If you run multiple daemons, add a
joborinstancelabel filter to the expressions so the alerts scope to the relevant subset. - Extend the dashboard with additional panels (for example, plotting CPU load or announce lockout counters) to capture the broader operational picture.