BCards-Scripts-Server/monitoring/prometheus.yml
2025-07-22 21:24:07 -03:00

39 lines
936 B
YAML

# Prometheus configuration for BCards monitoring
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
scrape_configs:
# Prometheus itself
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
# NGINX metrics (via nginx-prometheus-exporter if installed)
- job_name: 'nginx'
static_configs:
- targets: ['nginx-lb:8081']
metrics_path: /nginx_status
scrape_interval: 30s
# Application health checks
- job_name: 'bcards-app'
static_configs:
- targets: ['bcards-server1:8080', 'bcards-server2:8080']
metrics_path: /health
scrape_interval: 30s
# MongoDB exporter (if installed)
# - job_name: 'mongodb'
# static_configs:
# - targets: ['mongodb-exporter:9216']
# Redis exporter (if installed)
# - job_name: 'redis'
# static_configs:
# - targets: ['redis-exporter:9121']