alloy(role): pull in alloy role that works from fux
All checks were successful
/ build (pull_request) Successful in 28s
/ Ansible Lint (push) Successful in 3m9s
/ Ansible Lint (pull_request) Successful in 3m13s

This commit is contained in:
chris 2026-07-09 21:13:57 +02:00
commit 25bf4da29d
Signed by: c6ristian
SSH key fingerprint: SHA256:B3m+yzpaxGXSEcDBpPHfvza/DNC0wuX+CKMeGq8wgak
247 changed files with 555 additions and 19212 deletions

View file

@ -1,29 +1,33 @@
---
alloy_cap_net_bind_service: false
alloy_do_we_have_v6: "{{ (ansible_facts['all_ipv6_addresses'] | select('match', '^[23]') | list | length > 0) | ternary('true', 'false') }}"
alloy_config_default: |
prometheus.remote_write "default" {
endpoint {
url = "https://metrics.hamburg.ccc.de/api/v1/write"
basic_auth {
username = "chaos"
password = "chaos_password"
password = "{{ metrics__chaos_password }}"
}
}
}
prometheus.relabel "common" {
prometheus.relabel "chaosknoten_common" {
forward_to = [prometheus.remote_write.default.receiver]
rule {
target_label = "org"
replacement = "noorg"
replacement = "ccchh"
}
rule {
target_label = "site"
replacement = "nosite"
replacement = "wieske"
}
rule {
source_labels = ["instance"]
target_label = "instance"
regex = "([^:]+)"
replacement = "${1}.hosts.test"
replacement = "${1}.hosts.hamburg.ccc.de"
action = "replace"
}
}
@ -38,7 +42,56 @@ alloy_config_default: |
prometheus.scrape "scrape_metrics" {
targets = prometheus.exporter.unix.local_system.targets
forward_to = [prometheus.relabel.common.receiver]
forward_to = [prometheus.relabel.chaosknoten_common.receiver]
}
alloy_config_additional: ""
alloy_blackbox_exporter_config_default: |
modules:
https4_2xx:
prober: http
http:
valid_status_codes: [] # Defaults to 2xx
method: GET
follow_redirects: true
fail_if_ssl: false
fail_if_not_ssl: true
preferred_ip_protocol: "ip4"
ip_protocol_fallback: false
https6_2xx:
prober: http
http:
valid_status_codes: [] # Defaults to 2xx
method: GET
follow_redirects: true
fail_if_ssl: false
fail_if_not_ssl: true
preferred_ip_protocol: "ip6"
ip_protocol_fallback: false
tcp4_connect:
prober: tcp
tcp:
preferred_ip_protocol: "ip4"
ip_protocol_fallback: false
icmp4:
prober: icmp
icmp:
preferred_ip_protocol: "ip4"
ip_protocol_fallback: false
icmp6:
prober: icmp
icmp:
preferred_ip_protocol: "ip6"
ip_protocol_fallback: false
alloy_blackbox_exporter_config_additional: ""
alloy_unpoller_enabled: false
alloy_unpoller_unifi_user: unpoller
alloy_unpoller_unifi_password:
alloy_unpoller_unifi_url: