summaryrefslogtreecommitdiff
path: root/grafana/README.md
blob: 4e0a53dc1dfcc5396c7bc218f1f16b6aafcc8bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Grafana + Prometheus

Metrics visualization dashboard with Prometheus as the data source.

## Setup

1. Edit `prometheus.yml` to add your scrape targets.

2. Start:
   ```
   docker compose up -d
   ```

## Access

- Grafana: `http://<host>:3000`
  - Default login: `admin` / `admin` (change on first login)

## What to Configure

- **`prometheus.yml`** — Add your scrape targets (node_exporter, nginx_exporter, etc.) before starting. The file currently contains example targets.
- **Grafana** — On first login, add Prometheus as a data source at `http://prometheus:9090`.
- **Data persistence** — Both `prometheus_data` and `grafana_data` are Docker volumes. They persist across restarts and stack upgrades.