Horcrux metrics with Grafana & Prometheus - Cumulo-pro/Horcrux-Architecture GitHub Wiki
We can monitor the signing process of the signing nodes, for this we need to have the Prometheus server and Grafana installed in one of our servers.
Modify the configuration file:
sudo vi .horcrux/config.yaml
changes the parameter for accessing the Prometheus port
debugAddr: "0.0.0.0:6001"
sudo ufw allow 6001
Set the scrape_interval between 1 and 3 seconds in prometheus.yml if you want to log/monitor these metrics. Note that this will take up more disk space.
Modify the prometheus configuration file:
sudo vi /etc/prometheus/prometheus.yml
global:
scrape_interval: 3s
Restart the prometheus service:
sudo systemctl restart prometheus
sudo journalctl -u prometheus -f --no-hostname -o cat
sudo systemctl restart horcrux
sudo journalctl -u horcrux -f
Open a browser and type the ip of your signatory node with the Prometheus port:
http://(IP):6001/
We have a Grafana configuration example available. Download the json file: metric_horcrux.json
On the Prometheus server, modify the configuration file:
sudo vi /etc/prometheus/prometheus.yml
- job_name: horcrux
static_configs:
- targets: ["192.168.1.103:6001" ]
labels: { "chain":"", "share":"1" }
- targets: ["192.168.1.104:6001" ]
labels: { "chain":"", "share":"2" }
- targets: ["192.168.1.105:6001" ]
labels: { "chain":"", "share":"3" }
Restart prometheus service:
sudo systemctl restart prometheus
sudo journalctl -u prometheus -f --no-hostname -o cat
Dashboards > import
We choose the Dashboard name and Prometheus as the data source:
Process completed, you can now customise your dashboard, + info:
To access the dashboard metrics documentation, please visit the following link METRICS from Cumulo Horcrux Dashboard