diff --git a/promtail/promtail-config.yml b/promtail/promtail-config.yml new file mode 100644 index 0000000..a2f1e8a --- /dev/null +++ b/promtail/promtail-config.yml @@ -0,0 +1,28 @@ +server: + http_listen_port: 9080 + grpc_listen_port: 0 + +positions: + filename: /tmp/positions.yaml + +clients: + - url: http://loki:3100/loki/api/v1/push + +scrape_configs: + # System logs + - job_name: "varlogs" + static_configs: + - targets: + - localhost + labels: + job: "varlogs" + __path__: /var/log/*.log + + # Docker container logs on this host + - job_name: "docker-logs" + static_configs: + - targets: + - localhost + labels: + job: "docker" + __path__: /var/lib/docker/containers/*/*-json.log