feat: CI/CD pipeline setup complete - Ansible playbooks updated, secrets configured, workflow ready
This commit is contained in:
44
monitoring/prometheus/prometheus.yml
Normal file
44
monitoring/prometheus/prometheus.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
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
|
||||
Reference in New Issue
Block a user