Skip to content

Commit

Permalink
feat(promatil): access to container sockert
Browse files Browse the repository at this point in the history
  • Loading branch information
janikvonrotz committed Feb 12, 2025
1 parent cf8201b commit d27ceb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion roles/promtail/tasks/promtail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
recreate: false
state: "{{ promtail_state }}"
volumes:
- "{{ docker_data_dir }}:/var/lib/docker:ro"
- "{{ docker_data_dir }}/containers:/var/lib/docker/containers:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
- "{{ promtail_data_dir }}:/etc/promtail"
command: -config.file=/etc/promtail/config.yml
networks:
Expand Down
2 changes: 1 addition & 1 deletion roles/promtail/templates/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#FROM: https://github.com/grafana/loki/blob/v3.3.2/clients/cmd/promtail/promtail-local-config.yaml

server:
http_listen_address: 0.0.0.0
http_listen_port: 9080
grpc_listen_port: 0

positions:
filename: /tmp/positions.yaml
Expand Down

0 comments on commit d27ceb4

Please sign in to comment.