limit docker socket api access to alloy
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// ============================================================
|
||||
|
||||
discovery.docker "containers" {
|
||||
host = "unix:///var/run/docker.sock"
|
||||
host = "http://docker-socket-proxy:2375"
|
||||
}
|
||||
|
||||
discovery.relabel "containers" {
|
||||
@@ -21,7 +21,7 @@ discovery.relabel "containers" {
|
||||
}
|
||||
|
||||
loki.source.docker "containers" {
|
||||
host = "unix:///var/run/docker.sock"
|
||||
host = "http://docker-socket-proxy:2375"
|
||||
targets = discovery.relabel.containers.output
|
||||
forward_to = [loki.write.grafana_cloud.receiver]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user