> 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/install-supporting-software/install-grafana.md).

# 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 %}
