# Ethereum Metrics Exporter Targets

## Ethereum Metrics Exporter Targets

For accessing Ethereum client APIs, Ethereum Metrics Exporter has an advantage over json\_exporter. It can craft API queries that json\_exporter cannot, and it maintains state over time, allowing it to subscribe to events, for example.

The dashboard was nearly complete before Ethereum Metrics Exporter was incorporated. There is overlap in the data provided by Ethereum Metrics Exporter and json\_exporter, but both have been retained in the solution for now.

{% hint style="info" %}
The redundant API calls may be removed in the future. For now, having both sources of data provides some flexibility to not install Ethereum Metrics Exporter and still have much of the same functionality. A small number of dashboard panels will stop working entirely if Ethereum Metrics Exporter is not installed.
{% endhint %}

Edit the Ethereum Metrics Exporter configuration file in the `/etc/prometheus/files_sd/stakelocal/other/` directory.

```bash
sudo nano /etc/prometheus/files_sd/stakelocal/other/eth-metrics.yml
```

It should look like the following.

```yaml
    - targets: ['127.0.0.1:9095']
      labels:
        network: 'Mainnet'
        host: 'Default Host'
        service: 'Ethereum Metrics Exporter'
        group: 'Default Group'
        client: 'Ethereum Metrics Exporter'
```

If the Ethereum Metrics Exporter instance being queried is not on the local host or uses a non-standard port, update those on the `targets` line.

Update the `network`, `host`, `service`, and `group` labels, as needed. See [About Stake Local Labels](/dashboard-installation/prometheus-jobs-and-targets/about-stake-local-labels.md) for label definitions.

{% hint style="info" %}
Each instance of Ethereum Metrics Exporter can only serve a single pair of consensus and execution clients. Repeat this configuration for each instance of Ethereum Metrics Exporter to be monitored.
{% endhint %}

Save the file and exit the editor.

An example target file could look like the following.

```
    - targets: ['192.168.2.6:9095']
      labels:
        network: 'Mainnet'
        host: 'nuc'
        service: 'Ethereum Metrics - Lodestar/Erigon'
        group: 'Mainnet Lodestar/Erigon'
        client: 'Ethereum Metrics Exporter'
```

{% hint style="info" %}
Reminder: We are running Ethereum Metrics Exporter on a custom port (9095). The default port is 9090.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stakelocal.io/dashboard-installation/prometheus-jobs-and-targets/ethereum-metrics-exporter-targets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
