Skip to content
Snippets Groups Projects
Commit dc62c40f authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

magic

parent c8bdbedb
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +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://asia.mirror.pkgbuild.com, vhost: geo.mirror.pkgbuild.com }
- { target: https://america.mirror.pkgbuild.com, vhost: geo.mirror.pkgbuild.com }
- { target: https://europe.mirror.pkgbuild.com, vhost: geo.mirror.pkgbuild.com }
- http://{{ hostvars['monitoring.archlinux.org']['wireguard_address'] }}
- https://accounts.archlinux.org
- https://america.archive.pkgbuild.com
......@@ -31,7 +34,6 @@ blackbox_targets:
- https://dev.archlinux.org
- https://europe.archive.pkgbuild.com
- https://europe.mirror.pkgbuild.com
- https://geo.mirror.pkgbuild.com
- https://gitlab.archlinux.org
- https://ipxe.archlinux.org
- https://lists.archlinux.org
......
......@@ -164,10 +164,20 @@ scrape_configs:
module: [{{ module }}]
static_configs:
- targets:
{% for target in blackbox_targets[module] %}
{% for target in blackbox_targets[module] | select('string') %}
- {{ target }}
{% endfor %}
{% for vhost, targets in blackbox_targets[module] | select('mapping') | groupby('vhost') %}
- labels:
vhost: {{ vhost }}
targets:
{% for target in targets %}
- {{ target.target }}
{% endfor %}
{% endfor %}
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
......@@ -175,7 +185,10 @@ scrape_configs:
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9115
- source_labels: [vhost]
target_label: __param_hostname
{% endfor %}
{% for endpoint in matrix_metrics_endpoints %}
- job_name: 'synapse_{{ endpoint }}'
......
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