-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexporters_sample.yaml
79 lines (76 loc) · 1.83 KB
/
exporters_sample.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
#inputs:
# - name: prometheus_node_exporter
# interval: 5s # defaults 1s
# - name: http
# interval: 5s
# options:
# urls: ["http://127.0.0.1:10000/jmx"]
# parser: jmx
# tags:
# parser_type: jmx
# - name: http
# interval: 5s
# options:
# urls: ["http://127.0.0.1:9090/metrics"]
# parser: prometheus
# tags:
# parser_type: prometheus
# - name: http
# interval: 10s
# options:
# urls: ["http://127.0.0.1:4242/api/stats"]
# parser: opentsdb
# - name: zookeeper
# interval: 10s
# options:
# servers: ["127.0.0.1:2181","127.0.0.2"]
# tags:
# parser_type: zookeeper
output:
name: http
# url: http://localhost:9091/metrics/job/test
interval: 1s # defaults 1s
options:
print_metrics: true
exporter:
command_type : 1
global_tags:
key: value
blackbox_probe:
open: false # command_type = 1 & open = true
modules:
http_2xx:
prober: http
http:
valid_status_codes: [ 200,201,202,203,204,205,206,207,208,226,401,404 ]
http_post_2xx:
prober: http
http:
method: POST
valid_status_codes: [ 200,201,202,203,204,205,206,207,208,226,401,404 ]
tcp_connect:
prober: tcp
pop3s_banner:
prober: tcp
tcp:
query_response:
- expect: "^+OK"
tls: true
tls_config:
insecure_skip_verify: false
ssh_banner:
prober: tcp
tcp:
query_response:
- expect: "^SSH-2.0-"
irc_banner:
prober: tcp
tcp:
query_response:
- send: "NICK prober"
- send: "USER prober prober prober :prober"
- expect: "PING :([^ ]+)"
send: "PONG ${1}"
- expect: "^:[^ ]+ 001"
icmp:
prober: icmp