Verified Commit 3ab65485 authored by Evangelos Foutras's avatar Evangelos Foutras 🐱
Browse files

prometheus: extend dns monitoring to all geo domains

parent 5948d258
Pipeline #18750 passed with stage
in 35 seconds
......@@ -75,8 +75,8 @@ blackbox_targets:
smtp_starttls:
- mail.archlinux.org:25
- lists.archlinux.org:25
dns_geomirror_a: "{{ groups['geo_mirrors'] }}"
dns_geomirror_aaaa: "{{ groups['geo_mirrors'] }}"
geo_dns_geo.mirror.pkgbuild.com_a: "{{ groups['geo_mirrors'] }}"
geo_dns_geo.mirror.pkgbuild.com_aaaa: "{{ groups['geo_mirrors'] }}"
matrix_metrics_endpoints:
- homeserver
- appservice
......
#jinja2: lstrip_blocks: True
modules:
http_prometheus:
prober: http
......@@ -24,23 +25,25 @@ modules:
- send: "EHLO prober\r"
- expect: "^250"
- send: "QUIT\r"
dns_geomirror_a:
{% for domain in geo_domains %}
geo_dns_{{ domain }}_a:
prober: dns
timeout: 5s
dns:
query_name: geo.mirror.pkgbuild.com
query_name: {{ domain }}
query_type: A
preferred_ip_protocol: ip4
validate_answer_rrs:
fail_if_not_matches_regexp:
- geo\.mirror\.pkgbuild\.com\.\t.*\tIN\tA\t({{ groups['geo_mirrors'] | map('extract', hostvars, ['ipv4_address']) | join('|') | replace('.', '\.') }})
dns_geomirror_aaaa:
- {{ domain | replace('.', '\.') }}\.\t.*\tIN\tA\t({{ groups['geo_mirrors'] | map('extract', hostvars, ['ipv4_address']) | join('|') | replace('.', '\.') }})
geo_dns_{{ domain }}_aaaa:
prober: dns
timeout: 5s
dns:
query_name: geo.mirror.pkgbuild.com
query_name: {{ domain }}
query_type: AAAA
preferred_ip_protocol: ip6
validate_answer_rrs:
fail_if_not_matches_regexp:
- geo\.mirror\.pkgbuild\.com\.\t.*\tIN\tAAAA\t({{ groups['geo_mirrors'] | map('extract', hostvars, ['ipv6_address']) | join('|') }})
- {{ domain | replace('.', '\.') }}\.\t.*\tIN\tAAAA\t({{ groups['geo_mirrors'] | map('extract', hostvars, ['ipv6_address']) | join('|') }})
{% endfor %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment