# Access Grafana and Prometheus

### Grafana and Prometheus access

Verify that the following ports are open on the server:

```bash
firewall-cmd --add-port=3000/tcp --add-port=9090/tcp --add-port=9100/tcp --permanent
firewall-cmd --reload
ss -tulnp | grep grafana
ss -tulnp | grep prometheus
```

Verify node exporter metrics:

```bash
curl http://localhost:9100/metrics
```

### Grafana access

The default Grafana username is `admin` and the default password is `admin`.

```
http://<IP of VM>:3000
```

<figure><img src="https://docs.openiam.com/docs-2026.3.1/static/f6b7314b0026062eee031395258fccc8/e3189/1-rpm-with-internet-02-grafana-dashboard.png" alt="Grafana dashboard"><figcaption></figcaption></figure>

### Prometheus access

Change `web.listen-address` from **127.0.0.1** to **0.0.0.0** in this service file:

```bash
vi /etc/systemd/system/prometheus.service
```

Then reload and restart Prometheus:

```bash
systemctl daemon-reexec
systemctl daemon-reload
systemctl restart Prometheus
```

Access Prometheus at `http://<IP of VM>:9090`.

<figure><img src="https://docs.openiam.com/docs-2026.3.1/static/7bece3ea03bb0ad9fe002df3e130a114/e3189/1-rpm-with-internet-03-Prometheus.png" alt="Prometheus UI"><figcaption></figcaption></figure>

### Node exporter metrics

Access node exporter metrics at `http://<IP of VM>:9100/metrics`.

<figure><img src="https://docs.openiam.com/docs-2026.3.1/static/72a2878075ffcbfdc4606fafa20e6331/e3189/1-rpm-with-internet-04-Node-exporter.png" alt="Node exporter metrics"><figcaption></figcaption></figure>


---

# 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-beta.openiam.com/installing-openiam/access-grafana-and-prometheus.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.
