17. docker deployment
This commit is contained in:
53
COBY/docker/prometheus.yml
Normal file
53
COBY/docker/prometheus.yml
Normal file
@ -0,0 +1,53 @@
|
||||
# Prometheus configuration for COBY monitoring
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
|
||||
rule_files:
|
||||
# - "first_rules.yml"
|
||||
# - "second_rules.yml"
|
||||
|
||||
scrape_configs:
|
||||
# COBY application metrics
|
||||
- job_name: 'coby-app'
|
||||
static_configs:
|
||||
- targets: ['coby-app:8080']
|
||||
metrics_path: '/metrics'
|
||||
scrape_interval: 10s
|
||||
scrape_timeout: 5s
|
||||
|
||||
# TimescaleDB metrics (if postgres_exporter is added)
|
||||
- job_name: 'timescaledb'
|
||||
static_configs:
|
||||
- targets: ['timescaledb:5432']
|
||||
scrape_interval: 30s
|
||||
scrape_timeout: 10s
|
||||
|
||||
# Redis metrics (if redis_exporter is added)
|
||||
- job_name: 'redis'
|
||||
static_configs:
|
||||
- targets: ['redis:6379']
|
||||
scrape_interval: 30s
|
||||
scrape_timeout: 10s
|
||||
|
||||
# Prometheus self-monitoring
|
||||
- job_name: 'prometheus'
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
# Node exporter for system metrics (if added)
|
||||
- job_name: 'node'
|
||||
static_configs:
|
||||
- targets: ['node-exporter:9100']
|
||||
scrape_interval: 30s
|
||||
|
||||
# Alerting configuration
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets:
|
||||
# - alertmanager:9093
|
||||
|
||||
# Alert rules
|
||||
rule_files:
|
||||
- "/etc/prometheus/alert_rules.yml"
|
Reference in New Issue
Block a user