alloy(role): pull in alloy role that works from fux (#112)
Reviewed-on: #112 Reviewed-by: June <june@noreply.git.hamburg.ccc.de>
This commit is contained in:
parent
9a876e12a8
commit
900971ebe9
246 changed files with 222 additions and 19245 deletions
|
|
@ -1,44 +1,49 @@
|
|||
alloy_config_default: |
|
||||
prometheus.remote_write "default" {
|
||||
endpoint {
|
||||
url = "https://metrics.hamburg.ccc.de/api/v1/write"
|
||||
basic_auth {
|
||||
username = "chaos"
|
||||
password = "chaos_password"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
prometheus.relabel "common" {
|
||||
forward_to = [prometheus.remote_write.default.receiver]
|
||||
rule {
|
||||
target_label = "org"
|
||||
replacement = "noorg"
|
||||
}
|
||||
rule {
|
||||
target_label = "site"
|
||||
replacement = "nosite"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["instance"]
|
||||
target_label = "instance"
|
||||
regex = "([^:]+)"
|
||||
replacement = "${1}.hosts.test"
|
||||
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.common.receiver]
|
||||
}
|
||||
---
|
||||
alloy_cap_net_bind_service: false
|
||||
|
||||
alloy_config_default: ""
|
||||
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: ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue