chore(alloy): Scrape Alloy metrics

This commit is contained in:
Peter 2026-01-31 19:31:00 +01:00
parent b615320613
commit c1a8fdd6ac
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
2 changed files with 6 additions and 6 deletions

View file

@ -461,12 +461,12 @@ data:
path_targets = discovery.relabel.pod_logs.output
}
prometheus.scrape "prometheus" {
prometheus.scrape "alloy" {
targets = [{
__address__ = "localhost:9090",
__address__ = "localhost:12345",
}]
job_name = "alloy"
forward_to = [prometheus.remote_write.default.receiver]
job_name = "prometheus"
}
prometheus.scrape "node_exporter" {

View file

@ -476,12 +476,12 @@ data:
path_targets = discovery.relabel.pod_logs.output
}
prometheus.scrape "prometheus" {
prometheus.scrape "alloy" {
targets = [{
__address__ = "localhost:9090",
__address__ = "localhost:12345",
}]
job_name = "alloy"
forward_to = [prometheus.remote_write.default.receiver]
job_name = "prometheus"
}
prometheus.scrape "node_exporter" {