-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus.yml
36 lines (33 loc) · 1.02 KB
/
prometheus.yml
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
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
alerting:
alertmanagers:
- static_configs:
- targets:
rule_files:
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']
- job_name: vehicle-service
metrics_path: /actuator/prometheus
static_configs:
- targets: ['vehicle-service:8080']
- job_name: account-service
metrics_path: /actuator/prometheus
static_configs:
- targets: ['account-service:8080']
- job_name: trip-service
metrics_path: /actuator/prometheus
static_configs:
- targets: ['trip-service:8080']
- job_name: trip-consumer
metrics_path: /actuator/prometheus
static_configs:
- targets: ['trip-consumer:8080']
- job_name: invoice-service
metrics_path: /actuator/prometheus
static_configs:
- targets: ['invoice-service:8080']