# Checking Software Status

## Checking Software Status

### systemctl

The quick way to check the status of all of the supporting software is to run `systemctl status` on all of the services.

```bash
sudo systemctl status prometheus grafana-server node_exporter json_exporter eth-metrics
```

You will see output like the following.

<div><figure><img src="/files/3mkFiOmU5lHTW9U4m7Gm" alt=""><figcaption><p>Prometheus and Grafana status</p></figcaption></figure> <figure><img src="/files/BlBHyLNBaOI0PKePAhOX" alt=""><figcaption><p>node_exporter and json_exporter status</p></figcaption></figure> <figure><img src="/files/PGYak0vpXKD7B6yOGXJk" alt=""><figcaption><p>Ethereum Metrics Exporter status</p></figcaption></figure></div>

If you would like to see the logs individually for the supporting software, use the following commands to see the last 100 lines of log files.

```
sudo journalctl -u prometheus -n 100
sudo journalctl -u grafana-server -n 100
sudo journalctl -u node_exporter -n 100
sudo journalctl -u json_exporter -n 100
sudo journalctl -u eth-metrics -n 100
```

Replace "100" in the commands above with any number of lines you would like to see.

To see a never-ending stream of logs, use these commands, and use CTRL-C to exit.

```bash
sudo journalctl -fu prometheus
sudo journalctl -fu grafana-server
sudo journalctl -fu node_exporter
sudo journalctl -fu json_exporter
sudo journalctl -fu eth-metrics
```

Healthy Startups

Here is what a healthy start looks like in the logs for the supporting software.

### Logs

#### Prometheus

<figure><img src="/files/LyPg9xvX4oNwzZqwRZCx" alt=""><figcaption><p>Logs for a healthy Prometheus start</p></figcaption></figure>

#### Grafana

<figure><img src="/files/2pnx6KfVCGI3M6y9GjVL" alt=""><figcaption><p>Logs for a healthy Grafana start</p></figcaption></figure>

#### node\_exporter

<figure><img src="/files/y0jbB5kRpDKfq3KaRo3p" alt=""><figcaption><p>Logs for a healthy node_exporter start</p></figcaption></figure>

#### json\_exporter

<figure><img src="/files/RJNpRivyhu5MjTyGfdd6" alt=""><figcaption><p>Logs for a healthy json_exporter start</p></figcaption></figure>

#### Ethereum Metrics Exporter

<figure><img src="/files/Dog4OVegcGM84G53JMvc" alt=""><figcaption><p>Logs for a healthy Ethereum Metrics Exporter start</p></figcaption></figure>

Prometheus Targets

One way to check if your supporting software is running is to see whether Prometheus is able to scrape the software.&#x20;

Go to `http://127.0.0.1:9090`, replacing `127.0.0.1` with the IP address at which Prometheus is running.

At the top of the screen you should see a Status menu. Hover over that menu and click on the Targets link.

<figure><img src="/files/w0eUUWbLsPsRNtKwZFjt" alt=""><figcaption><p>Find the Targets link under the Status menu</p></figcaption></figure>

The Targets screen will appear listing all of the Prometheus targets we previously set up.

You may need click Clear Selection in the targets filter in the upper-left corner of the screen.

<figure><img src="/files/QPg93AMztA7MGlPYmPwp" alt=""><figcaption><p>Clear the selection to see all Prometheus targets</p></figcaption></figure>

Each line of blue or red text represents a single Prometheus job serving one or more targets.

* Blue means Prometheus has successfully scraped data recently
* Red means Prometheus has not successfully scraped data recently from one

The numbers in parentheses show how many of the targets within each group Prometheus has successfully scraped recently.

<figure><img src="/files/m46aNpJuVlOaHrr3Da4Q" alt=""><figcaption><p>The Targets screen showing the status of various Prometheus jobs</p></figcaption></figure>

{% hint style="warning" %}
If Prometheus has not had any data from a target within the last 15 minutes, it will show that target in the color red on this screen. Two of the jobs will often show a red color on this screen:

* consensus\_beacon\_genesis - This job runs every few hours, because the genesis information never changes. Therefore, Prometheus often shows this job in red.
* github\_latest\_release - This job runs every few hours, because GitHub has a low rate limit. Therefore, Prometheus often shows this job in red. Additionally, it may take a couple hours after a new release for that release to be reflected on the Prometheus Targets screen.

The last job that may be red is blackbox\_exporter. That job is not presently covered in these instructions.
{% 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/enable-and-start-restart-services/checking-software-status.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.
