From 5b9cb5208a19442883a64a35db11da590ec78187 Mon Sep 17 00:00:00 2001 From: justinglock40 Date: Sun, 12 Jan 2020 08:37:12 -0500 Subject: [PATCH] Add files via upload --- .../templates/promtail/docker-config.yaml | 64 ++++++++++++------- 1 file changed, 41 insertions(+), 23 deletions(-) diff --git a/menu/new_ui/templates/promtail/docker-config.yaml b/menu/new_ui/templates/promtail/docker-config.yaml index 5b64bbfc..8e80f231 100644 --- a/menu/new_ui/templates/promtail/docker-config.yaml +++ b/menu/new_ui/templates/promtail/docker-config.yaml @@ -5,32 +5,50 @@ server: positions: filename: /tmp/positions.yaml -clients: - - url: http://loki:3100/loki/api/v1/push +client: + url: http://loki:3100/loki/api/v1/push scrape_configs: -- job_name: pgblitzlogs - static_configs: - - targets: + - job_name: pgvar + pipeline_stages: + - docker: + static_configs: + - targets: - localhost - labels: - job: pgblitzlogs - __path__: /var/log/pgblitz.log + labels: + job: pgvar + host: yourhost + __path__: /var/log/*.log -scrape_configs: -- job_name: emergencylogs - static_configs: - - targets: + - job_name: uploader + pipeline_stages: + - docker: + static_configs: + - targets: - localhost - labels: - job: emergencylogs - __path__: /var/log/emergency/*log - -scrape_configs: -- job_name: drivelogs - static_configs: - - targets: + labels: + job: uploader + host: yourhost + __path__: /var/log/uploader/*.log + + - job_name: mounts + pipeline_stages: + - docker: + static_configs: + - targets: + - localhost + labels: + job: mounts + host: yourhost + __path__: /var/log/drive/*.log + + - job_name: emergency + pipeline_stages: + - docker: + static_configs: + - targets: - localhost - labels: - job: drivelogs - __path__: /var/log//drives/*log + labels: + job: emergency + host: yourhost + __path__: /var/log/emergency/*.log