# Install Grafana

## Grafana

Grafana provides all dashboard functionality. Dashboards are displayed using Grafana's user interface, and query for data from Prometheus.

### Install Supporting Software

Install the supporting software we may need.

```bash
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get install software-properties-common wget
```

### Install Grafana

Install the key for authenticating Grafana packages.

```bash
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
```

This command may generate a warning about `apt-key` being deprecated. That is not a problem.

<figure><img src="/files/oFBu2poksPPwvcsyQRq4" alt=""><figcaption><p>Results of <code>wget | apt-key</code> command</p></figcaption></figure>

Add the Grafana repository to the list of external repositories and update the package list.

```bash
sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
```

The `add-apt-repository` command may also generate a warning about `apt-key` being deprecated.

<figure><img src="/files/Z9o8XBeJOFP1gZuqiYTN" alt=""><figcaption><p>Results of <code>add-apt-repository</code> command</p></figcaption></figure>

Update the package list and install Grafana.

```bash
sudo apt-get update
sudo apt-get install grafana
```

<figure><img src="/files/SGFhZE9GRGwewNl2AtOe" alt=""><figcaption><p>Results of <code>sudo apt-get install grafana</code> command</p></figcaption></figure>

### Notes

{% hint style="info" %}
Grafana will listen on port 3000. This is the port for the Grafana user interface.
{% endhint %}

{% hint style="warning" %}
We have not yet configured nor started Grafana.
{% 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/install-supporting-software/install-grafana.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.
