Add basic lgtm-stack (WIP)

This commit is contained in:
Tobias Reisinger 2025-05-01 01:28:24 +02:00
parent 0b6e4f1550
commit 0359a4ffa7
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 289 additions and 0 deletions

View file

@ -0,0 +1,24 @@
logging {
level = "info"
format = "logfmt"
}
prometheus.exporter.self "alloy" {}
prometheus.scrape "alloy" {
targets = prometheus.exporter.self.alloy.targets
forward_to = [prometheus.remote_write.mimir.receiver]
}
// prometheus.exporter.node_exporter "node_exporter" {}
prometheus.scrape "node_exporter" {
targets = [
{"__address__" = "node_exporter:9100", "job" = "node_exporter"},
]
forward_to = [prometheus.remote_write.mimir.receiver]
}
prometheus.remote_write "mimir" {
endpoint {
url = "https://{{ lgtm_stack_mimir_domain }}/api/v1/push"
}
}