fix: correct Grafana dashboard JSON format

- Remove dashboard wrapper from JSON files
- Dashboards now load successfully
- Update monitoring guide with correct instructions
This commit is contained in:
roma-dxunvrs
2026-10-03 22:59:11 +03:00
parent 96af109f6d
commit 91d54f4ef0
3 changed files with 474 additions and 376 deletions
+22 -5
View File
@@ -2,14 +2,31 @@
## Быстрый старт
1. **Доступ к сервисам:**
1. **Запуск:**
```bash
docker compose up -d
```
2. **Доступ к сервисам:**
- Приложение: http://localhost:8080
- Prometheus: http://localhost:9090
- Grafana: http://localhost:3000 (admin/admin)
- Grafana: http://localhost:3000 (логин: admin, пароль: admin)
2. **Дашборды автоматически загружены:**
- Spring Boot Application Metrics
- PostgreSQL & HikariCP Monitoring
3. **Дашборды:**
- Открой Grafana → Home → Dashboards
- Два дашборда загружены автоматически:
- **Spring Boot Application Metrics** — HTTP, JVM, CPU, GC
- **PostgreSQL & HikariCP Monitoring** — connection pool, база данных
4. **Создай нагрузку для проверки:**
```bash
# Создать задачу
curl -X POST http://localhost:8080/api/tasks \
-H "Content-Type: application/json" \
-d '{"title":"Test","description":"Load test","completed":false}'
# Посмотреть метрики появятся в Grafana через 5-15 секунд
```
## Основные метрики