📖
Stake Local Dashboard
  • Stake Local Dashboard
    • Library Sections
  • Dashboard Installation
    • Installation Overview
    • Install Supporting Software
      • Install Prerequisites
      • Install Prometheus
      • Install Grafana
      • Install node_exporter
      • Install json_exporter
      • Install Ethereum Metrics Exporter
    • Configure Ethereum Clients
    • Configure Supporting Software
      • Configure json_exporter
      • Configure Prometheus Rules
      • Configure Ethereum Metrics Exporter
    • Prometheus Jobs & Targets
      • Prometheus Jobs
      • About Stake Local Labels
      • Base Targets Installation
      • Consensus Client Targets
      • Execution Client Targets
      • Validator Client Targets
      • node_exporter Target
      • json_exporter Target
      • Ethereum Metrics Exporter Targets
      • Third-Party Targets
      • Ethereum Address Targets
      • Validator Public Key Targets
      • Optional: Grafana Target
      • Optional: Prometheus Target
      • Clean Up Unused Targets
    • Optional: Alternative Dashboard Compatibility
      • Besu Dashboard Compatibility
      • Erigon Dashboard Compatibility
      • Geth Dashboard Compatibility
      • Lighthouse Dashboard Compatibility
      • Lodestar Dashboard Compatibility
      • Nethermind Dashboard Compatibility
      • Nimbus Dashboard Compatibility
      • Prysm Dashboard Compatibility
      • Teku Compatibility
    • Enable & Start/Restart Services
      • Checking Software Status
    • Install Dashboard
  • Additional Modifications
    • Additional Staking Groups
    • Change or Add Currency
Powered by GitBook
On this page
  • Consensus Client Targets
  • Consensus Client Metrics Configuration
  • Consensus Client API Configuration
  1. Dashboard Installation
  2. Prometheus Jobs & Targets

Consensus Client Targets

Customize the default consensus client targets

PreviousBase Targets InstallationNextExecution Client Targets

Last updated 2 years ago

Consensus Client Targets

Consensus client data is collected by Prometheus from three different sources:

  1. Directly from the client metrics page

  2. Indirectly from the client API via json_exporter

  3. Indirectly from the client API via Ethereum Metrics Exporter

We will review the configuration files for the first two here. Ethereum Metrics Exporter is covered in a later section.

If you would like to monitor more than one instance of the same client, please see the section for details.

Consensus Client Metrics Configuration

To configure the Prometheus target for client metrics, follow the instructions for your client below.

Edit the Lighthouse configuration file in the /etc/prometheus/files_sd/stakelocal/consensus_metrics directory.

sudo nano /etc/prometheus/files_sd/stakelocal/consensus_metrics/lighthouse.yml

It should look like the following.

    - targets: ['127.0.0.1:5054']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Lighthouse Beacon'
        group: 'Default Group'
        explorer: 'beaconcha.in'

If this instance of Lighthouse is accessible at a different IP address or port, update those in the targets line.

Update the network, host, service, group and explorer labels, as needed. See for label definitions.

Save the file and exit the editor.

Edit the Lodestar configuration file in the /etc/prometheus/files_sd/stakelocal/consensus_metrics directory.

sudo nano /etc/prometheus/files_sd/stakelocal/consensus_metrics/lodestar.yml

It should look like the following.

    - targets: ['127.0.0.1:8008']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Lodestar Beacon'
        group: 'Default Group'
        explorer: 'beaconcha.in'

If this instance of Lodestar is accessible at a different IP address or port, update those in the targets line.

Update the network, host, service, group and explorer labels, as needed. See for label definitions.

Save the file and exit the editor.

Edit the Nimbus configuration file in the /etc/prometheus/files_sd/stakelocal/consensus_metrics directory.

sudo nano /etc/prometheus/files_sd/stakelocal/consensus_metrics/nimbus.yml

It should look like the following.

    - targets: ['127.0.0.1:8008']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Nimbus'
        group: 'Default Group'
        explorer: 'beaconcha.in'

If this instance of Nimbus is accessible at a different IP address or port, update those in the targets line.

Save the file and exit the editor.

Edit the Prysm configuration file in the /etc/prometheus/files_sd/stakelocal/consensus_metrics directory.

sudo nano /etc/prometheus/files_sd/stakelocal/consensus_metrics/prysm.yml

It should look like the following.

    - targets: ['127.0.0.1:8080']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Prysm Beacon'
        group: 'Default Group'
        explorer: 'beaconcha.in'

If this instance of Prysm is accessible at a different IP address or port, update those in the targets line.

Save the file and exit the editor.

Edit the Teku configuration file in the /etc/prometheus/files_sd/stakelocal/consensus_metrics directory.

sudo nano /etc/prometheus/files_sd/stakelocal/consensus_metrics/teku.yml

It should look like the following.

    - targets: ['127.0.0.1:8008']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Teku'
        group: 'Default Group'
        explorer: 'beaconcha.in'

If this instance of Teku is accessible at a different IP address or port, update those in the targets line.

Save the file and exit the editor.

An example consensus client metrics target file for the Goerli network could look like the following.

    - targets: ['192.168.0.42:8080']
      labels:
        network: 'Goerli'
        host: 'server12'
        service: 'Prysm Beacon'
        group: 'Goerli Prysm/Geth'
        explorer: 'goerli.beaconcha.in'

Consensus Client API Configuration

To configure the Prometheus target for client APIs, follow the instructions for your client below.

Edit the Lighthouse configuration file in the /etc/prometheus/files_sd/stakelocal/consensus_apis directory.

sudo nano /etc/prometheus/files_sd/stakelocal/consensus_apis/lighthouse.yml

It should look like the following.

    - targets: ['127.0.0.1:5052']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Lighthouse Beacon'
        group: 'Default Group'
        explorer: 'beaconcha.in'

If this instance of Lighthouse is accessible at a different IP address or port, update those in the targets line.

Save the file and exit the editor.

Edit the Lodestar configuration file in the /etc/prometheus/files_sd/stakelocal/consensus_apis directory.

sudo nano /etc/prometheus/files_sd/stakelocal/consensus_apis/lodestar.yml

It should look like the following.

    - targets: ['127.0.0.1:9596']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Lodestar Beacon'
        group: 'Default Group'
        explorer: 'beaconcha.in'

If this instance of Lodestar is accessible at a different IP address or port, update those in the targets line.

Save the file and exit the editor.

Edit the Nimbus configuration file in the /etc/prometheus/files_sd/stakelocal/consensus_apis directory.

sudo nano /etc/prometheus/files_sd/stakelocal/consensus_apis/nimbus.yml

It should look like the following.

    - targets: ['127.0.0.1:5052']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Nimbus'
        group: 'Default Group'
        explorer: 'beaconcha.in'

If this instance of Nimbus is accessible at a different IP address or port, update those in the targets line.

Save the file and exit the editor.

Edit the Prysm configuration file in the /etc/prometheus/files_sd/stakelocal/consensus_apis directory.

sudo nano /etc/prometheus/files_sd/stakelocal/consensus_apis/prysm.yml

It should look like the following.

    - targets: ['127.0.0.1:3500']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Prysm Beacon'
        group: 'Default Group'
        explorer: 'beaconcha.in'

If this instance of Prysm is accessible at a different IP address or port, update those in the targets line.

Save the file and exit the editor.

Edit the Teku configuration file in the /etc/prometheus/files_sd/stakelocal/consensus_apis directory.

sudo nano /etc/prometheus/files_sd/stakelocal/consensus_apis/teku.yml

It should look like the following.

    - targets: ['127.0.0.1:5051']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Teku'
        group: 'Default Group'
        explorer: 'beaconcha.in'

If this instance of Teku is accessible at a different IP address or port, update those in the targets line.

Save the file and exit the editor.

An example consensus client API target file for the Mainnet network could look like the following.

    - targets: ['127.0.0.1:5051']
      labels:
        network: 'Mainnet'
        host: 'wopr'
        service: 'Backup Teku'
        group: 'Mainnet Teku/Besu'
        explorer: 'beaconcha.in'

Update the network, host, service, group and explorer labels, as needed. See for label definitions.

Update the network, host, service, group and explorer labels, as needed. See for label definitions.

Update the network, host, service, group and explorer labels, as needed. See for label definitions.

Update the network, host, service, group and explorer labels, as needed. See for label definitions.

Update the network, host, service, group and explorer labels, as needed. See for label definitions.

Update the network, host, service, group and explorer labels, as needed. See for label definitions.

Update the network, host, service, group and explorer labels, as needed. See for label definitions.

Update the network, host, service, group and explorer labels, as needed. See for label definitions.

Additional Modifications
About Stake Local Labels
About Stake Local Labels
About Stake Local Labels
About Stake Local Labels
About Stake Local Labels
About Stake Local Labels
About Stake Local Labels
About Stake Local Labels
About Stake Local Labels
About Stake Local Labels