global: scrape_interval: 15s evaluation_interval: 15s external_labels: cluster: mockupaws replica: '{{.ExternalURL}}' alerting: alertmanagers: - static_configs: - targets: - alertmanager:9093 rule_files: - /etc/prometheus/alerts/*.yml scrape_configs: #------------------------------------------------------------------------------ # Prometheus Self-Monitoring #------------------------------------------------------------------------------ - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] #------------------------------------------------------------------------------ # mockupAWS Application Metrics #------------------------------------------------------------------------------ - job_name: 'mockupaws-backend' static_configs: - targets: ['backend:8000'] metrics_path: /api/v1/metrics scrape_interval: 15s scrape_timeout: 10s #------------------------------------------------------------------------------ # Node Exporter (Infrastructure) #------------------------------------------------------------------------------ - job_name: 'node-exporter' static_configs: - targets: ['node-exporter:9100'] scrape_interval: 15s #------------------------------------------------------------------------------ # PostgreSQL Exporter #------------------------------------------------------------------------------ - job_name: 'postgres-exporter' static_configs: - targets: ['postgres-exporter:9187'] scrape_interval: 15s #------------------------------------------------------------------------------ # Redis Exporter #------------------------------------------------------------------------------ - job_name: 'redis-exporter' static_configs: - targets: ['redis-exporter:9121'] scrape_interval: 15s #------------------------------------------------------------------------------ # AWS CloudWatch Exporter (for managed services) #------------------------------------------------------------------------------ - job_name: 'cloudwatch' static_configs: - targets: ['cloudwatch-exporter:9106'] scrape_interval: 60s #------------------------------------------------------------------------------ # cAdvisor (Container Metrics) #------------------------------------------------------------------------------ - job_name: 'cadvisor' static_configs: - targets: ['cadvisor:8080'] scrape_interval: 15s #------------------------------------------------------------------------------ # Blackbox Exporter (Uptime Monitoring) #------------------------------------------------------------------------------ - job_name: 'blackbox-http' metrics_path: /probe params: module: [http_2xx] static_configs: - targets: - https://mockupaws.com - https://mockupaws.com/api/v1/health - https://api.mockupaws.com/api/v1/health relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: blackbox-exporter:9115