Files
bakery-ia/infrastructure/monitoring/prometheus/prometheus.yml

88 lines
2.1 KiB
YAML
Raw Normal View History

2025-07-20 02:16:51 +02:00
# infrastructure/monitoring/prometheus/prometheus.yml
# Prometheus configuration
global:
scrape_interval: 15s
2025-07-19 17:49:03 +02:00
evaluation_interval: 15s
2025-07-20 02:16:51 +02:00
external_labels:
cluster: 'bakery-forecasting'
replica: 'prometheus-01'
2025-07-19 17:49:03 +02:00
rule_files:
2025-07-20 02:16:51 +02:00
- "/etc/prometheus/rules/*.yml"
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
scrape_configs:
2025-07-20 02:16:51 +02:00
# Service discovery for microservices
- job_name: 'gateway'
static_configs:
2025-09-28 13:54:28 +02:00
- targets: ['gateway-service:8000']
2025-07-19 17:49:03 +02:00
metrics_path: '/metrics'
scrape_interval: 30s
2025-07-20 02:16:51 +02:00
scrape_timeout: 10s
- job_name: 'auth-service'
static_configs:
2025-07-19 17:49:03 +02:00
- targets: ['auth-service:8000']
metrics_path: '/metrics'
scrape_interval: 30s
- job_name: 'tenant-service'
static_configs:
- targets: ['tenant-service:8000']
metrics_path: '/metrics'
scrape_interval: 30s
- job_name: 'training-service'
static_configs:
2025-07-19 17:49:03 +02:00
- targets: ['training-service:8000']
metrics_path: '/metrics'
scrape_interval: 30s
- job_name: 'forecasting-service'
static_configs:
2025-07-19 17:49:03 +02:00
- targets: ['forecasting-service:8000']
metrics_path: '/metrics'
scrape_interval: 30s
2025-08-12 18:17:30 +02:00
- job_name: 'sales-service'
static_configs:
2025-08-12 18:17:30 +02:00
- targets: ['sales-service:8000']
metrics_path: '/metrics'
scrape_interval: 30s
- job_name: 'external-service'
static_configs:
- targets: ['external-service:8000']
2025-07-19 17:49:03 +02:00
metrics_path: '/metrics'
scrape_interval: 30s
2025-07-19 17:49:03 +02:00
- job_name: 'notification-service'
static_configs:
2025-07-19 17:49:03 +02:00
- targets: ['notification-service:8000']
metrics_path: '/metrics'
scrape_interval: 30s
2025-07-20 02:16:51 +02:00
# Infrastructure monitoring
2025-07-19 17:49:03 +02:00
- job_name: 'redis'
static_configs:
2025-07-19 17:49:03 +02:00
- targets: ['redis:6379']
2025-07-20 02:16:51 +02:00
metrics_path: '/metrics'
scrape_interval: 30s
2025-07-19 17:49:03 +02:00
- job_name: 'rabbitmq'
static_configs:
- targets: ['rabbitmq:15692']
2025-07-20 02:16:51 +02:00
metrics_path: '/metrics'
scrape_interval: 30s
2025-07-19 17:49:03 +02:00
2025-07-20 02:16:51 +02:00
# Database monitoring (requires postgres_exporter)
- job_name: 'postgres'
static_configs:
- targets: ['postgres-exporter:9187']
scrape_interval: 30s