-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.yml
More file actions
43 lines (38 loc) · 1.09 KB
/
prometheus.yml
File metadata and controls
43 lines (38 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
cluster: 'microservices'
environment: 'production'
scrape_configs:
# Ingestion Service
- job_name: 'ingestion-service'
static_configs:
- targets: ['ingestion-service:3001']
metrics_path: '/metrics'
scrape_interval: 10s
# Worker Services - DNS-based service discovery for ALL replicas
# Docker Compose resolves the service name to multiple A records when scaled.
- job_name: 'worker-services'
dns_sd_configs:
- names: ['worker-service']
type: 'A'
port: 3000
metrics_path: '/metrics'
scrape_interval: 10s
# Analytics Service
- job_name: 'analytics-service'
static_configs:
- targets: ['analytics-service:3002']
metrics_path: '/metrics'
scrape_interval: 15s
# NATS Monitoring via nats-exporter
- job_name: 'nats'
static_configs:
- targets: ['nats-exporter:7777']
metrics_path: '/metrics'
scrape_interval: 10s
# Prometheus self-monitoring
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']