blob: 5c67f7bf708a4f3f82ee8527ce4fc9ab5205a426 (
plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
#modules:
# http_2xx_example:
# prober: http
# timeout: 5s
# http:
# valid_http_versions: ["HTTP/1.1", "HTTP/2"]
# valid_status_codes: [] # Defaults to 2xx
# method: GET
# headers:
# Host: vhost.example.com
# Accept-Language: en-US
# no_follow_redirects: false
# fail_if_ssl: false
# fail_if_not_ssl: false
# fail_if_matches_regexp:
# - "Could not connect to database"
# fail_if_not_matches_regexp:
# - "Download the latest version here"
# tls_config:
# insecure_skip_verify: false
# preferred_ip_protocol: "ip4" # defaults to "ip6"
# http_post_2xx:
# prober: http
# timeout: 5s
# http:
# method: POST
# headers:
# Content-Type: application/json
# body: '{}'
# http_basic_auth_example:
# prober: http
# timeout: 5s
# http:
# method: POST
# headers:
# Host: "login.example.com"
# basic_auth:
# username: "username"
# password: "mysecret"
# http_custom_ca_example:
# prober: http
# http:
# method: GET
# tls_config:
# ca_file: "/certs/my_cert.crt"
# tls_connect:
# prober: tcp
# timeout: 5s
# tcp:
# tls: true
# tcp_connect_example:
# prober: tcp
# timeout: 5s
# imap_starttls:
# prober: tcp
# timeout: 5s
# tcp:
# query_response:
# - expect: "OK.*STARTTLS"
# - send: ". STARTTLS"
# - expect: "OK"
# - starttls: true
# - send: ". capability"
# - expect: "CAPABILITY IMAP4rev1"
# smtp_starttls:
# prober: tcp
# timeout: 5s
# tcp:
# query_response:
# - expect: "^220 ([^ ]+) ESMTP (.+)$"
# - send: "EHLO prober"
# - expect: "^250-STARTTLS"
# - send: "STARTTLS"
# - expect: "^220"
# - starttls: true
# - send: "EHLO prober"
# - expect: "^250-AUTH"
# - send: "QUIT"
# irc_banner_example:
# prober: tcp
# timeout: 5s
# tcp:
# query_response:
# - send: "NICK prober"
# - send: "USER prober prober prober :prober"
# - expect: "PING :([^ ]+)"
# send: "PONG ${1}"
# - expect: "^:[^ ]+ 001"
# icmp_example:
# prober: icmp
# timeout: 5s
# icmp:
# preferred_ip_protocol: "ip4"
# source_ip_address: "127.0.0.1"
# dns_udp_example:
# prober: dns
# timeout: 5s
# dns:
# query_name: "www.prometheus.io"
# query_type: "A"
# valid_rcodes:
# - NOERROR
# validate_answer_rrs:
# fail_if_matches_regexp:
# - ".*127.0.0.1"
# fail_if_not_matches_regexp:
# - "www.prometheus.io.\t300\tIN\tA\t127.0.0.1"
# validate_authority_rrs:
# fail_if_matches_regexp:
# - ".*127.0.0.1"
# validate_additional_rrs:
# fail_if_matches_regexp:
# - ".*127.0.0.1"
# dns_tcp_example:
# prober: dns
# dns:
# transport_protocol: "tcp" # defaults to "udp"
# preferred_ip_protocol: "ip4" # defaults to "ip6"
# query_name: "www.prometheus.io"
|