diff --git a/homelab/server/config/monitoring/promtail-config.yml b/homelab/server/config/monitoring/promtail-config.yml index 29722c47..be45b19c 100644 --- a/homelab/server/config/monitoring/promtail-config.yml +++ b/homelab/server/config/monitoring/promtail-config.yml @@ -32,28 +32,28 @@ scrape_configs: # per: https://gist.github.com/ruanbekker/c6fa9bc6882e6f324b4319c5e3622460?permalink_comment_id=3764474 - job_name: containers entry_parser: raw - static_configs: - - targets: + static_configs: + - targets: - localhost - labels: - job: containerlogs - __path__: /var/lib/docker/containers/*/*log - pipeline_stages: - - json: - expressions: - stream: stream - attrs: attrs - tag: attrs.tag - - regex: - expression: (?P(?:[^|]*[^|])).(?P(?:[^|]*[^|])).(?P(?:[^|]*[^|])).(?P(?:[^|]*[^|])) - source: "tag" - - labels: - tag: - stream: - image_name: - container_name: - image_id: - container_id: + labels: + job: containerlogs + __path__: /var/lib/docker/containers/*/*log + pipeline_stages: + - json: + expressions: + stream: stream + attrs: attrs + tag: attrs.tag + - regex: + expression: (?P(?:[^|]*[^|])).(?P(?:[^|]*[^|])).(?P(?:[^|]*[^|])).(?P(?:[^|]*[^|])) + source: "tag" + - labels: + tag: + stream: + image_name: + container_name: + image_id: + container_id: