Setting Up Dashboards
Prometheus is a monitoring platform that collects metrics from monitored targets by scraping metrics HTTP endpoints on these targets. Official documentation is available here.
Grafana is a dashboard used to visualize the collected data.
🐣 Installing Prometheus and Grafana
Install prometheus and prometheus node exporter.
Install grafana.
Enable services so they start automatically.
Update prometheus.yml located in /etc/prometheus/prometheus.yml
Change the <block producer ip address> in the following command.
Finally, restart the services.
Verify that the services are running properly:
Update config.json
config files with new hasEKG
and hasPrometheus
ports.
A note on port forwarding and firewall configuration.
Block producer node ports 12798 and 9100 should be reachable from the relaynode1, which is hosting Prometheus and Grafana.
Port 12798 is for Cardano-Node's prometheus metrics.
Port 9100 is for node-exporter metrics.
Stop and restart your stake pool.
Verify the metrics are working by querying the prometheus port.
📶 Configuring Grafana
Open http://localhost:3000 (if using ssh tunnel or on relaynode1) or http://<your relaynode1 ip address>:3000 in your local browser.
Login with admin / admin
Change password
Click the configuration gear icon, then Add data Source
Select Prometheus
Set Name to "Prometheus"
Set URL to http://localhost:9090
Click Save & Test
Download and save this json file.
Click Create + icon > Import
Add dashboard by Upload JSON file
Click the Import button.
Community contributer SNSKY is sharing a very detailed Grafana tutorial 🙏 https://sanskys.github.io/grafana/
Congratulations. You're basically done. More great operational and maintenance tips in section 18.
Be sure to review the Stake Pool Operator's Best Practices Checklist to ensure smooth sailing with your pool.