Compare commits

...
Author SHA1 Message Date
e8d05c6542
alloy(role): remove alloy_config_default contents from role
All checks were successful
/ build (pull_request) Successful in 56s
/ Ansible Lint (pull_request) Successful in 3m28s
/ Ansible Lint (push) Successful in 3m36s
alloy_config_default should be set in group vars
2026-07-17 18:51:14 +02:00
1c31b0d43c
alloy(role0: fix spelling mistake 2026-07-17 18:41:15 +02:00
2 changed files with 3 additions and 45 deletions

View file

@ -9,11 +9,11 @@ Should work on Debian-based distributions.
## Required Arguments
- `alloy_config_default`: The default Alloy configuration. Recomanded for configuration that hosts of a groupe share.
- `alloy_config_default`: The default Alloy configuration. Recommended for configuration that hosts of a groupe share.
## Optional Arguments
- `alloy_config_additional`: Additional Alloy configuration appended to the default config. Recomanded for per host configuration
- `alloy_config_additional`: Additional Alloy configuration appended to the default config. Recommended for per host configuration
- `alloy_cap_net_bind_service`: Grant Alloy the `CAP_NET_BIND_SERVICE` capability, allowing it to bind to privileged ports (<1024).
### Blackbox Exporter

View file

@ -1,49 +1,7 @@
---
alloy_cap_net_bind_service: false
alloy_config_default: |
prometheus.remote_write "default" {
endpoint {
url = "https://metrics.hamburg.ccc.de/api/v1/write"
basic_auth {
username = "chaos"
password = "{{ metrics__chaos_password }}"
}
}
}
prometheus.relabel "chaosknoten_common" {
forward_to = [prometheus.remote_write.default.receiver]
rule {
target_label = "org"
replacement = "ccchh"
}
rule {
target_label = "site"
replacement = "wieske"
}
rule {
source_labels = ["instance"]
target_label = "instance"
regex = "([^:]+)"
replacement = "${1}.hosts.hamburg.ccc.de"
action = "replace"
}
}
logging {
level = "info"
}
prometheus.exporter.unix "local_system" {
enable_collectors = ["systemd"]
}
prometheus.scrape "scrape_metrics" {
targets = prometheus.exporter.unix.local_system.targets
forward_to = [prometheus.relabel.chaosknoten_common.receiver]
}
alloy_config_default: ""
alloy_config_additional: ""
alloy_blackbox_exporter_config_default: |