Files
kubernetes/victoria-metrics/blackbox.yml
Dustin C. Hatch b8015c0bed v-m: blackbox: Force TCP probe to IPv4
Since I added an IPv6 ULA prefix to the "main" VLAN (to allow
communicating with the Synology directly), the domain controllers now
have AAAA records.  This causes the `sambadc` screpe job to fail because
Blackbox Exporter prefers IPv6 by default, but Kubernetes pods do not
have IPv6 addreses.
2024-06-26 18:29:49 -05:00

46 lines
1010 B
YAML

modules:
dns_pyrocufflink:
dns:
query_name: pyrocufflink.blue
query_type: SOA
validate_answer_rrs:
fail_if_not_matches_regexp:
- pyrocufflink\.blue\.\t\d+\tIN\tSOA\tdc.+\.pyrocufflink\.blue.*
prober: dns
timeout: 2s
dns_recursive:
dns:
query_name: news.ycombinator.com
query_type: A
prober: dns
timeout: 5s
http:
http:
headers:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Charset: utf-8
Accept-Language: en-US
method: GET
prober: http
timeout: 5s
icmp:
prober: icmp
timeout: 5s
icmp:
preferred_ip_protocol: ip4
smtp:
prober: tcp
tcp:
query_response:
- expect: ^220 ([^ ]+) ESMTP (.+)$
- send: EHLO prober\r
- expect: ^250[ -]SMTPUTF8
- send: QUIT\r
timeout: 5s
tcp:
prober: tcp
timeout: 5s
tcp:
preferred_ip_protocol: ip4
ip_protocol_fallback: false