Files
mostovik-backend/deploy/monitoring/prometheus.yml
Aleksandr Meshchriakov cbfbd8652d feat: Add comprehensive Django user app with tests using model-bakery
- Implemented user authentication with JWT tokens
- Added user and profile models with OneToOne relationship
- Created service layer for business logic separation
- Implemented DRF serializers and views
- Added comprehensive test suite with model-bakery factories
- Fixed ipdb/pdbpp dependency conflicts with custom test runner
- Configured development and production environments
- Added deployment configurations for Apache, systemd, and Docker
2026-01-19 14:12:33 +01:00

36 lines
765 B
YAML

# Конфигурация мониторинга Prometheus для Django приложения
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- "alert.rules"
scrape_configs:
- job_name: 'django-app'
static_configs:
- targets: ['localhost:8000']
metrics_path: '/metrics'
scrape_interval: 30s
- job_name: 'celery-exporter'
static_configs:
- targets: ['localhost:9542']
scrape_interval: 30s
- job_name: 'postgresql'
static_configs:
- targets: ['localhost:9187']
scrape_interval: 30s
- job_name: 'redis'
static_configs:
- targets: ['localhost:9121']
scrape_interval: 30s
alerting:
alertmanagers:
- static_configs:
- targets:
- alertmanager:9093