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:
+22
-5
@@ -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 секунд
|
||||
```
|
||||
|
||||
## Основные метрики
|
||||
|
||||
|
||||
Reference in New Issue
Block a user