chore(alloy): Add prometheus node_exporter scraper

This commit is contained in:
Peter 2026-01-07 15:35:57 +01:00
parent a62f3db699
commit d837168234
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg

View file

@ -462,8 +462,6 @@ data:
} }
prometheus.relabel "node_exporter" { prometheus.relabel "node_exporter" {
forward_to = [prometheus.remote_write.default.receiver]
rule { rule {
action = "replace" action = "replace"
target_label = "node" target_label = "node"
@ -471,6 +469,12 @@ data:
} }
} }
prometheus.scrape "node_exporter" {
targets = [prometheus.relabel.node_exporter]
forward_to = [prometheus.remote_write.default.receiver]
job_name = "node_exporter"
}
prometheus.scrape "prometheus" { prometheus.scrape "prometheus" {
targets = [{ targets = [{
__address__ = "localhost:9090", __address__ = "localhost:9090",