Install Ethereum Metrics Exporter
Install Ethereum Metrics Exporter for access to additional API data
Ethereum Metrics Exporter
Ethereum Metrics Exporter exports queries consensus and execution client APIs and exports that data in the Prometheus metrics format. There is some overlap between the client API endpoints accessed by Ethereum Metrics Exporter and json_exporter, but both exporters offer access to data in unique ways.
A single instance of Ethereum Metrics Exporter can be configured to query a single consensus/execution client group. Multiple instances of Ethereum Metrics Exporter are required to monitor multiple consensus/execution groups.
Create System Account
Create a user account under which Ethereum Metrics Exporter can run.
sudo adduser --system eth-metrics --group --no-create-home

adduser
commandInstall Ethereum Metrics Exporter
Download and build the Ethereum Metrics Exporter executable.
go install github.com/ethpandaops/ethereum-metrics-exporter@latest

go install
commandCopy the executable to the /usr/local/bin
directory.
sudo cp ~/go/bin/ethereum-metrics-exporter /usr/local/bin
Create Supporting Directories
Create additional required directories.
sudo mkdir -p /var/local/lib/eth-metrics /etc/eth-metrics
Configure Startup
Create a systemd service file to configure automatic startup of the Ethereum Metrics Exporter service for a single consensus/execution client pair.
sudo nano /etc/systemd/system/eth-metrics.service
Insert the following into the Ethereum Metrics Exporter systemd service file.
[Unit]
Description=Ethereum Metrics Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=eth-metrics
Group=eth-metrics
Type=simple
Restart=always
RestartSec=5
ExecStart=/usr/local/bin/ethereum-metrics-exporter \
--config /etc/eth-metrics/eth-metrics.yml \
--metrics-port 9095
[Install]
WantedBy=multi-user.target
The default listening port for the Ethereum Metrics Exporter is 9090, which also happens to be the default listening port for Prometheus. In the service file above, the Ethereum Metrics Exporter port is re-assigned to 9095 through the metrics port
flag.
Notes
We have not yet configured nor started Ethereum Metrics Exporter.
Last updated