add alloy to the z9 hosts and some cleanup
Some checks failed
/ Ansible Lint (push) Failing after 45s
Some checks failed
/ Ansible Lint (push) Failing after 45s
This commit is contained in:
parent
c7d51af5b4
commit
5693989c38
6 changed files with 302 additions and 6 deletions
|
|
@ -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: ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue