-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathprometheus.yaml
80 lines (73 loc) · 1.66 KB
/
prometheus.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
global:
scrape_interval: 15s
scrape_timeout: 10s
scrape_configs:
# Scrape configuration for all of the example scripts.
- job_name: output
metrics_path: /probe
params:
script:
- output
static_configs:
- targets:
- script_exporter:9469
- job_name: ping
metrics_path: /probe
params:
script:
- ping
params:
- target
static_configs:
- targets:
- example.com
- example.org
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- target_label: __address__
replacement: script_exporter:9469
- source_labels: [__param_target]
target_label: target
- job_name: showtimeout
metrics_path: /probe
params:
script:
- showtimeout
static_configs:
- targets:
- script_exporter:9469
- job_name: sleep
metrics_path: /probe
params:
script:
- sleep
params:
- seconds
seconds:
- "20"
static_configs:
- targets:
- script_exporter:9469
- job_name: cache
metrics_path: /probe
params:
script:
- cache
params:
- seconds
seconds:
- "5"
static_configs:
- targets:
- script_exporter:9469
# Configuration to get the metrics of the Script Exporter.
- job_name: "script_exporter"
metrics_path: /metrics
static_configs:
- targets:
- script_exporter:9469
# Configuration for the Prometheus discovery feature of the Script Exporter.
- job_name: scripts
http_sd_configs:
- url: http://script_exporter:9469/discovery