From 7593e21cf678039c61d454e9d255361c4b9e9893 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 8 Jul 2022 01:31:00 -0700 Subject: [PATCH] Fix indentation --- .../config/monitoring/promtail-config.yml | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) 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: