-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathprometheus.yml
59 lines (56 loc) · 1.66 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# https://prometheus.io/docs/prometheus/latest/configuration/configuration/
global:
scrape_interval: 15s # Default is every 1 minute.
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - 'alertmanager:9093'
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node-exporter'
static_configs:
- targets: ['node-exporter:9100']
- job_name: 'cadvisor'
static_configs:
- targets: ['cadvisor:8080']
- job_name: 'rabbitmq-server'
static_configs:
- targets:
- 'rabbitmq-business:15692'
- 'rabbitmq-zipkin:15692'
- job_name: 'postgres'
static_configs:
- targets:
- 'postgresql-master-exporter:9187'
- 'postgresql-slave-exporter:9187'
- 'postgresql-financial-exporter:9187'
- job_name: 'redis'
static_configs:
- targets:
- 'redis-exporter:9121'
- job_name: 'zipkin'
scrape_interval: 5s
metrics_path: '/prometheus'
static_configs:
- targets: ['zipkin:9411']
- job_name: 'services'
metrics_path: '/actuator/prometheus'
static_configs:
- targets:
- 'eureka:8761'
- 'booking-one:8100'
- 'booking-two:8100'
- 'booking-three:8100'
- 'searching-one:8200'
- 'searching-two:8200'
- 'financial:8300'
- 'frontend:8400'