-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.yml
More file actions
51 lines (42 loc) · 1.27 KB
/
Copy pathprometheus.yml
File metadata and controls
51 lines (42 loc) · 1.27 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
44
45
46
47
48
49
50
51
global:
scrape_interval: 5s # By default, scrape targets every 15 seconds.
evaluation_interval: 5s # Evaluate rules every 15 seconds.
# Alertmanager Configuration
# alerting:
# alertmanagers:
# - static_configs:
# # docker
# - targets: ['host.docker.internal:9093']
# # Ubuntu Installation manually
# # - targets: ['192.168.64.2:9093']
scrape_configs:
- job_name: 'prometheus'
scrape_interval: 15s
metrics_path: /metrics
static_configs:
# - targets: ['host.docker.internal:9090']
- targets: ['prometheus:9090']
- job_name: 'pushgateway'
scrape_interval: 15s
honor_labels: true
static_configs:
# - targets: ['host.docker.internal:9091']
- targets: ['pushgateway:9091']
- job_name: 'blackbox_http'
metrics_path: "/probe"
params:
module: [http_2xx]
#target: [localhost:8004]
static_configs:
- targets:
#- localhost:9115/probe?module=http_2xx&target=localhost:8004
#- localhost:9115
- localhost:8004
- localhost:8082
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:2222