add alloy to the z9 hosts and some cleanup
Some checks failed
/ Ansible Lint (push) Failing after 41s
/ Ansible Lint (pull_request) Failing after 42s

This commit is contained in:
chris 2026-01-25 20:58:14 +01:00
commit 9f3003f1e7
Signed by: c6ristian
SSH key fingerprint: SHA256:B3m+yzpaxGXSEcDBpPHfvza/DNC0wuX+CKMeGq8wgak
6 changed files with 302 additions and 6 deletions

View file

@ -4,26 +4,26 @@ alloy_config_default: |
url = "https://metrics.hamburg.ccc.de/api/v1/write"
basic_auth {
username = "chaos"
password = "{{ metrics__chaos_password }}"
password = "chaos_password"
}
}
}
prometheus.relabel "chaosknoten_common" {
prometheus.relabel "common" {
forward_to = [prometheus.remote_write.default.receiver]
rule {
target_label = "org"
replacement = "ccchh"
replacement = "noorg"
}
rule {
target_label = "site"
replacement = "wieske"
replacement = "nosite"
}
rule {
source_labels = ["instance"]
target_label = "instance"
regex = "([^:]+)"
replacement = "${1}.hosts.hamburg.ccc.de"
replacement = "${1}.hosts.test"
action = "replace"
}
}
@ -38,7 +38,7 @@ alloy_config_default: |
prometheus.scrape "scrape_metrics" {
targets = prometheus.exporter.unix.local_system.targets
forward_to = [prometheus.relabel.chaosknoten_common.receiver]
forward_to = [prometheus.relabel.common.receiver]
}
alloy_config_additional: ""