From ae827106cf67a05bc6152faeab1da2cae22f3b1d Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Tue, 22 Sep 2020 23:54:24 +0900 Subject: [PATCH] Ignore `apt` and `Temporary Directories`. --- cookbooks/promtail/templates/etc/promtail/base.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/promtail/templates/etc/promtail/base.yaml b/cookbooks/promtail/templates/etc/promtail/base.yaml index 10e013e..9429394 100644 --- a/cookbooks/promtail/templates/etc/promtail/base.yaml +++ b/cookbooks/promtail/templates/etc/promtail/base.yaml @@ -245,7 +245,7 @@ scrape_configs: pipeline_stages: - match: - selector: '{job="init"} |~ "(apt download|Message of the Day)"' + selector: '{job="init"} |~ "(apt|Message of the Day|Temporary Directories)"' stages: - template: source: level @@ -255,7 +255,7 @@ scrape_configs: level: - match: - selector: '{job="init"} !~ "(apt download|Message of the Day)"' + selector: '{job="init"} !~ "(apt|Message of the Day|Temporary Directories)"' stages: - template: source: level