Monitoring with Grafana & Prometheus
Última actualización
¿Te fue útil?
Última actualización
¿Te fue útil?
In this tutorial, we are going to create a grafana dashboard for our stake pool that have 3 nodes relays and 1 core node (block producer).
One of the relay nodes, the relay3, will be used as grafana host, it will be the server where installing and deploying grafana monitoring web. So for this server, the configuration steps will be a bit different, and the rest relays and core nodes will follow the same steps.
We will monitor both the cardano-node
generated metrics and the general server metrics of the Prometheus node-exporter
service.
Add key to apt :
Add repository to apt:
Update the packages (now we have grafana repo and verifiable with the key):
Install grafana:
Change port where grafana web will be deployed:
Choose the port of your choice(you can use the default port):
http_port = <port>
Start grafana service and enable to start on reboot:
Check grafana status:
Others options:
Open the port used in grafana.ini
with ufw:
Finally, install the Clock plugin:
Choose the port fo your choice, change the line from:
To:
Start the services and enable them to init when reboot:
Once all the services are installed and working, lets edit the prometheus conf file to add the relays and core metrics data source:
Delete all content and add the new conf:
Note that, the relay3 is the host of grafana monitoring tool, so we just need to specify the localhost ip 127.0.0.1 for this source, because they are in the same machine.
Restart the service to load the new conf:
In grafana left menu, go to Configuration > Data Sources > Add data source and select Prometheus.
In grafana left menu, go to + > Create > Dashboard.
Create a graph about connected peers:
Create a chart about connected peers:
Example output:
In grafana panel, Go to + > Create > Import > enter json content.
Example panel version 1:
Support our work delegating to .