> For the complete documentation index, see [llms.txt](https://docs.stakelocal.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stakelocal.io/dashboard-installation/prometheus-jobs-and-targets/prometheus-jobs.md).

# Prometheus Jobs

## Prometheus Jobs

### Configure prometheus.yml

{% hint style="danger" %}
The instructions below will overwrite your current `prometheus.yml` file with a version that supports the Stake Local Dashboard. A backup will be made of your existing file, but it is up to you to merge the two files, if necessary.

Many existing Ethereum client dashboards will work with this `prometheus.yml` file as-is or with minimal changes. See [Optional: Alternative Dashboard Compatibility](/dashboard-installation/optional-alternative-dashboard-compatibility.md) for a guide to maintaining compatibility with other dashboards.
{% endhint %}

Back up your current `prometheus.yml` file to your home directory, if you have one.

```bash
cp -v --backup=numbered /etc/prometheus/prometheus.yml ~/
```

<figure><img src="/files/zFUZqsVL7mqbxoyBDgi2" alt=""><figcaption><p>Results of <code>cp</code> command</p></figcaption></figure>

Copy the `prometheus.yml` rules configuration file from the Stake Local Dashboard repository to `/etc/prometheus/`.

```bash
cd ~/git/stakelocal-dashboard/config/prometheus/
sudo cp prometheus.yml /etc/prometheus
```

### Check Configuration

Check the configuration with `promtool`.

```bash
sudo promtool check config /etc/prometheus/prometheus.yml
```

{% hint style="info" %}
You will get many warnings about files that do not exist. These are the target files that have not yet been configured. This is not a problem.
{% endhint %}

Look for "SUCCESS" messages similar to the following for both the configuration file and the rules file.

```
SUCCESS: /etc/prometheus/prometheus.yml is valid prometheus config file syntax
SUCCESS: 46 rules found
```

<figure><img src="/files/f9gK9NjUTtMf4jr3fjE9" alt=""><figcaption><p>A successful <code>promtool check</code> command</p></figcaption></figure>

If you see the output above, then you have successfully configured the Prometheus jobs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.stakelocal.io/dashboard-installation/prometheus-jobs-and-targets/prometheus-jobs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
