45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
external_labels:
|
|
environment: 'production'
|
|
project: 'michaelschiemer-framework'
|
|
|
|
# Alerting configuration
|
|
alerting:
|
|
alertmanagers:
|
|
- static_configs:
|
|
- targets: []
|
|
|
|
# Scrape configurations
|
|
scrape_configs:
|
|
# Prometheus self-monitoring
|
|
- job_name: 'prometheus'
|
|
static_configs:
|
|
- targets: ['localhost:9090']
|
|
|
|
# Framework application metrics (if exposed)
|
|
- job_name: 'framework-app'
|
|
static_configs:
|
|
- targets: ['web:80']
|
|
metrics_path: '/metrics'
|
|
scrape_interval: 30s
|
|
|
|
# PostgreSQL metrics (via postgres_exporter if configured)
|
|
- job_name: 'postgres'
|
|
static_configs:
|
|
- targets: ['db:5432']
|
|
scrape_interval: 30s
|
|
|
|
# Redis metrics (via redis_exporter if configured)
|
|
- job_name: 'redis'
|
|
static_configs:
|
|
- targets: ['redis:6379']
|
|
scrape_interval: 30s
|
|
|
|
# Docker metrics (via cAdvisor if configured)
|
|
- job_name: 'docker'
|
|
static_configs:
|
|
- targets: ['host.docker.internal:8080']
|
|
scrape_interval: 30s
|