OVHserver/opt/infrastructure-docs/monitoring-documentation.md
SamoilenkoVadym a987d45fbc chore: initial infrastructure setup with Syncthing, Git and documentation
Set up three-tier synchronization: Syncthing (real-time), GitHub (version control), rsync (disaster recovery). Includes complete documentation for future Claude sessions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 16:41:12 +00:00

69 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 📊 Документация системы мониторинга
## Архитектура мониторинга
### Компоненты:
1. **Prometheus** - сбор метрик (порт 9090)
2. **Grafana** - визуализация (порт 3000)
3. **Alertmanager** - управление алертами (порт 9093)
4. **Node Exporter** - метрики системы (порт 9100)
5. **cAdvisor** - метрики контейнеров (порт 8081)
6. **Loki** - сбор логов (порт 3100)
7. **Promtail** - агент для Loki
8. **Blackbox Exporter** - мониторинг SSL/HTTP (порт 9115)
### Дашборды Grafana:
- **Docker Containers Monitoring** - мониторинг контейнеров
- **SSL Certificates Monitoring** - мониторинг 19 SSL доменов
- **Postiz Business Metrics** - бизнес-метрики Postiz
- **PostgreSQL Monitoring** - мониторинг БД
### Источники данных:
- **Prometheus** - `http://prometheus:9090`
- **Loki** - `http://loki:3100`
## Конфигурационные файлы
### Prometheus
- Конфиг: `/etc/prometheus/prometheus.yml`
- Retention: 15 дней
- Интервал сканирования: 30 секунд
### Loki
- Конфиг: `/opt/00-infrastructure/loki/loki-config.yaml`
- Хранилище: Docker volume `loki_loki-data`
- Retention: 720 часов (30 дней)
### Автоматические обновления
- Сервис: `auto-update.service`
- Таймер: `auto-update.timer` (ежедневно в 00:09 UTC)
- Скрипт: `/opt/05-backups/scripts/auto-update.sh`
## Мониторинг SSL сертификатов
Мониторятся 19 доменов:
- ai-impress.com, www.ai-impress.com
- auth.ai-impress.com, n8n.ai-impress.com
- odoo.ai-impress.com, marketing.ai-impress.com
- pgadmin.ai-impress.com, portainer.ai-impress.com
- social.ai-impress.com, status.ai-impress.com
- vault.ai-impress.com, wiki.ai-impress.com
- и другие...
## Логирование
Loki собирает логи:
- Всех Docker контейнеров (49 контейнеров)
- Системные логи (`/var/log/*`)
- Логи приложений (`/opt/**/*.log`)
## Доступ
- Grafana: http://51.89.231.46:3000 (admin/admin123)
- Prometheus: http://localhost:9090
- Alertmanager: http://localhost:9093
- Loki: http://localhost:3100
## Резервные копии
Конфиги хранятся в:
- `/opt/04-tools/grafana/dashboards/` - дашборды Grafana
- `/opt/00-infrastructure/` - конфиги сервисов