monitoring: Bestandsaufnahme des laufenden Stacks

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>
This commit is contained in:
2026-07-30 12:12:11 +02:00
co-authored by Claude Opus 5
commit 00fb7f51d7
5 changed files with 206 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
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"
}
}