Skip to main content

8.8 Dashboard Configuration

A Grafana dashboard is a powerful interface for visualizing real-time metrics, allowing node operators to monitor client performance, hardware usage, validator income, and network health. This guide will cover how to configure the dashboard interface after previously setting up the Prometheus data collector and exporter services.

Dashboard Preview

tip

Further details about node analytics can be found on the Monitoring Tools page in the 🧠 Theory section.

info

The following step is performed on your πŸ“Ÿ node server.

1. Resolve IP Address​

info

You can use the ip tool to display the system’s default package route and source IP when connecting to the router. The default gateway's IP address is the intermediate route the system takes when sending data to an IP address outside its local network.

ip route show default

The output will look like this:

default via <GATEWAY_IP_ADDRESS> dev eno1 proto dhcp src <NODE_IP_ADDRESS> metric <ROUTING_WEIGHT>

Remember or copy your node's IP address, then log out of your node and continue using your personal computer's browser.

exit
info

The following steps are performed on your πŸ’» personal computer.

2. Access Web Interface​

Open your browser and access your node's IP address on the previously opened Grafana port.

http://<static-node-ip>:3000
info

Exchange your-static-node-ip with the actual retreived IP address.

The default login credentials to the Grafana dashboard will be the following:

DEFAULT CREDENTIALS
-------------------
username: admin
password: admin
warning

Set a new secure and long password when prompted by Grafana. Security is vital as this page will be exposed through VPNs.

3. Add Prometheus Data Source​

By default, Grafana is not listening to any metrics that were previously set up using Prometheus and all it's data sources. You have to first attach the running Prometheus service to the Grafana Dashboard so it can listen and gather metrics in it's own database.

  1. Open the Burger Menu icon on the left side
  2. Click Connections to manage data sources
  3. Clic Data sources on the left menu bar
  4. Click the Add Data Source button at the top right
  5. Click the Prometheus card in the middle screen
  6. Enter http://127.0.0.1:9090/ as URL to listen for data
  7. Click Save & Test before continuing with the setup
tip

You should see a green Data source is working checkmark before continuing to import the dashboard.

4. Import Dashboard​

After configuring the data source, you can continue to add the dashboard to vizualize the collected data and configure alerts. This guide already comes with a set of prebuilt Grafana templates that are ready to use. If you want, those dashboards can later be adjusted and modified to further customize your experience.

  1. Navigate to the πŸ“ Template section of this page
  2. Choose the JSON File based on your Consensus Client, Grafana Version, and Fiat Currency.
  3. Copy the raw JSON File contents by opening the file with a text editor
  4. Open the Grafana Landing Page by clicking on the logo on the top left
  5. Click the Plus Icon on the top right corner of the page
  6. Click on Import Dashboard to add a new interface
  7. Paste the raw contents to the Import via Panel JSON text box
  8. Click the Load button to apply validity checks
  9. Click the Import button to install the dashboard
tip

If you chose different Ports or Prometheus Job-Names, you will have to modify and match all configuration files.

  1. Consensus client ports can be adjusted within the Prometheus Dataset Configuration.
  2. Price Conversions require updating the JSON Explorer Configuration and Prometheus Dataset Configuration.
  3. Job Names of the Prometheus Dataset must match the Jobs of the Grafana Dashboard.
info

Great and free examples of editors with JSON formatting are 🦎 Notepad++ or πŸ”Ή Visual Studio Code.