| # Prometheus configuration for 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'] | |
| # Main application | |
| - job_name: 'misinformation-heatmap' | |
| static_configs: | |
| - targets: ['app:8000', 'app:8080'] | |
| metrics_path: '/metrics' | |
| scrape_interval: 30s | |
| scrape_timeout: 10s | |
| # Nginx metrics (if nginx-prometheus-exporter is used) | |
| - job_name: 'nginx' | |
| static_configs: | |
| - targets: ['nginx:8080'] | |
| metrics_path: '/nginx_status' | |
| scrape_interval: 30s | |
| # Redis metrics (if redis_exporter is used) | |
| - job_name: 'redis' | |
| static_configs: | |
| - targets: ['redis:6379'] | |
| scrape_interval: 30s | |
| # Node exporter for system metrics (if added) | |
| - job_name: 'node' | |
| static_configs: | |
| - targets: ['node-exporter:9100'] | |
| scrape_interval: 30s | |
| # Alerting rules (optional) | |
| alerting: | |
| alertmanagers: | |
| - static_configs: | |
| - targets: | |
| # - alertmanager:9093 |