Skip to content
Snippets Groups Projects
Verified Commit 274c9665 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

magic

parent 7866427f
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,9 @@ prometheus_remote_write_relabel_configs:
# for d in $(curl -sf "https://crt.sh/?q=archlinux.org&output=json" "https://crt.sh/?q=pkgbuild.com&output=json" | jq -r ".[].name_value" | sort -u); do if curl -o /dev/null -sS "https://$d"; then echo $d; fi; done | grep -v "\@" | sort | sed "s/^/ - https:\/\//"
blackbox_targets:
http_prometheus:
- { target: https://america.mirror.pkgbuild.com, vhost: geo.mirror.pkgbuild.com }
- { target: https://asia.mirror.pkgbuild.com, vhost: geo.mirror.pkgbuild.com }
- { target: https://europe.mirror.pkgbuild.com, vhost: geo.mirror.pkgbuild.com }
- targets: "{{ groups['geo_mirrors'] }}"
hostname: geo.mirror.pkgbuild.com
secure: true
- http://{{ hostvars['monitoring.archlinux.org']['wireguard_address'] }}
- https://accounts.archlinux.org
- https://america.archive.pkgbuild.com
......
......@@ -168,13 +168,13 @@ scrape_configs:
- {{ target }}
{% endfor %}
{% for vhost, targets in blackbox_targets[module] | select('mapping') | groupby('vhost') %}
{% for vhost in blackbox_targets[module] | select('mapping') %}
- labels:
vhost: {{ vhost }}
vhost: {{ vhost.hostname }}
targets:
{% for target in targets %}
- {{ target.target }}
{% for target in vhost.targets %}
- {{ 'https' if vhost.secure else 'http' }}://{{ target }}
{% endfor %}
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment