Import des bisherigen Stands aus /opt/monitoring auf dem Operating-Host, unveraendert. Images auf :latest, Grafana ohne Provisioning (Datasources und Dashboards nur in der grafana.db), keine Dokumentation. Dient als Ausgangspunkt fuer den Umbau auf einen vollstaendig provisionierbaren Stack. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
27 lines
668 B
Plaintext
27 lines
668 B
Plaintext
discovery.docker "linux_containers" {
|
|
host = "unix:///var/run/docker.sock"
|
|
}
|
|
|
|
loki.source.docker "docker_logs" {
|
|
host = "unix:///var/run/docker.sock" // Diesen Wert habe ich hinzugefügt
|
|
targets = discovery.docker.linux_containers.targets
|
|
forward_to = [loki.write.local_loki.receiver]
|
|
}
|
|
|
|
loki.write "local_loki" {
|
|
endpoint {
|
|
url = "http://loki:3100/loki/api/v1/push"
|
|
}
|
|
}
|
|
|
|
prometheus.scrape "node_exporter" {
|
|
targets = [{"__address__" = "node-exporter:9100"}]
|
|
forward_to = [prometheus.remote_write.local_prometheus.receiver]
|
|
}
|
|
|
|
prometheus.remote_write "local_prometheus" {
|
|
endpoint {
|
|
url = "http://prometheus:9090/api/v1/write"
|
|
}
|
|
}
|