Add basic lgtm-stack (WIP)
This commit is contained in:
parent
0b6e4f1550
commit
0359a4ffa7
7 changed files with 289 additions and 0 deletions
24
playbooks/roles/lgtm_stack/templates/config.alloy.j2
Normal file
24
playbooks/roles/lgtm_stack/templates/config.alloy.j2
Normal 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"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue