apiVersion: v1
kind: ConfigMap
metadata:
  name: promtail-config
data: 
  promtail: |
    server:
      http_listen_port: 9080
      grpc_listen_port: 0

    positions:
      filename: /tmp/positions.yaml

    client:
      url: http://loki:3100/api/prom/push

    scrape_configs:
    - job_name: system
      pipeline_stages:
      - docker:
      static_configs:
      - targets:
          - localhost
        labels:
          job: docker-containers-logs
          __path__: /var/lib/docker/containers/*/*.log

  
