Performance monitor
Being an Ethereum client, Raylz generates a wealth of data that can be structured into a chronological database. By combining InfluxDB, Prometheus, and Grafana, Raylz can run a monitoring stack for debugging and fine-tuning node operations.
Follow the instructions below to set up the monitoring stack. Instructions are divided into the stack's individual components.
Prerequisites
Before you begin configuring the monitoring stack, make sure you have:
a running Raylz instance
basic knowledge of bash/terminal
Watch this informative video for a comprehensive introduction to Raylz monitoring.
[embed video]
Set up InfluxDB
InfluxDB provides the structure for a chronological database. Follow the instructions below to set up the database on a Linux system.
Install InfluxDB using the following commands (for Debian-based Linux).
Create a new user with admin privileges.
Enter the InfluxDB shell as the new user.
Create a database and user for Raylz metrics.
Verify the created entries.
Exit InfluxDB shell.
Set up Prometheus
Prometheus is required to enable metrics in Raylz. Use the instructions provided below to configure Prometheus for your system.
Download and run Prometheus in a Docker container.
Create a
prometheus.yml
configuration file.Prepare and set up recording rules for Prometheus.
Enable metrics in Raylz by specifying the InfluxDB endpoint and authentication.
Set up Grafana
Run the commands provided below to install Grafana.
Access Grafana at
localhost:3000
in a browser. Change the default password.Configure InfluxDB as a data source with the following criteria:
Name: InfluxDB
Query Language: InfluxQL
HTTP URL: http://localhost:8086
Database: raylz
User/Password: /
HTTP Method: GET Save and test the configuration.
Import the provided dashboard for Raylz monitoring.
Additional Grafana features
Grafana offers automatic alerts and dashboard customization.
To set up alerts, refer to Grafana's OnCall documentation. This tool offers extensive control over event notifications.
For more information about customizing dashboards, please see Grafana's content on building dashboards.
Last updated