# Optional: Prometheus Target

## Prometheus Target

The Stake Local dashboard provides only basic, high-level information about Prometheus. It may include memory use, version information, and latest GitHub release. Configuring this target is optional.

Edit the Prometheus configuration file in the `/etc/prometheus/files_sd/stakelocal/other` directory.

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

It should look like the following.

```yaml
    - targets: ['127.0.0.1:9090']
      labels:
        host: 'Default Host'
        service: 'Prometheus'
        client: 'Prometheus'
```

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

Update the `host` or `service` labels, as needed. See [About Stake Local Labels](https://docs.stakelocal.io/dashboard-installation/prometheus-jobs-and-targets/about-stake-local-labels) for label definitions.

Save the file and exit the editor.

An example `prometheus.yml` file could look like the following.

```
    - targets: ['10.0.2.54:9090']
      labels:
        host: 'gringotts'
        service: 'Prometheus'
        client: 'Prometheus'
```
