From 2239e9b6055eeb1f658b63144266379bf68c79e7 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 7 Jul 2022 23:30:13 -0700 Subject: [PATCH] Fix job indentation --- .../config/monitoring/promtail-config.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/homelab/server/config/monitoring/promtail-config.yml b/homelab/server/config/monitoring/promtail-config.yml index f64fd74b..efe0a02c 100644 --- a/homelab/server/config/monitoring/promtail-config.yml +++ b/homelab/server/config/monitoring/promtail-config.yml @@ -9,6 +9,13 @@ clients: - url: http://loki:3100/loki/api/v1/push scrape_configs: + - job_name: docker + pipeline_stages: + - docker: {} + static_configs: + - labels: + job: docker + __path__: /var/lib/docker/containers/*/*-json.log # local machine logs # @@ -19,16 +26,6 @@ scrape_configs: # labels: # job: varlogs # __path__: /var/log/*log - -## docker logs - -- job_name: docker - pipeline_stages: - - docker: {} - static_configs: - - labels: - job: docker - __path__: /var/lib/docker/containers/*/*-json.log # syslog target