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.

image

1️⃣ Access the signer node to be monitored

Modify the configuration file:

sudo vi .horcrux/config.yaml  

changes the parameter for accessing the Prometheus port
debugAddr: "0.0.0.0:6001"

2️⃣ Open the Firewall port

sudo ufw allow 6001  

3️⃣ Access to the server hosting Prometheus

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
image

Restart the prometheus service:

sudo systemctl restart prometheus  
sudo journalctl -u prometheus -f --no-hostname -o cat  

4️⃣ Restart the node signer

sudo systemctl restart horcrux   
sudo journalctl -u horcrux -f  

5️⃣ Check the metrics directly in Prometheus of the node

Open a browser and type the ip of your signatory node with the Prometheus port:
http://(IP):6001/
image

6️⃣ Configure Grafana

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  

7️⃣ Import the dashboard in Grafana

Dashboards > import
image

We choose the Dashboard name and Prometheus as the data source:
image

Process completed, you can now customise your dashboard, + info:

grafana


METRICS from Cumulo Horcrux Dashboard

To access the dashboard metrics documentation, please visit the following link METRICS from Cumulo Horcrux Dashboard

⚠️ **GitHub.com Fallback** ⚠️