From 19570ea372a438661872e87a64eec4c8c6e6bd41 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Mon, 1 Apr 2024 17:15:13 +0900 Subject: [PATCH] Delete `Promtail` config. --- .../loki/templates/etc/promtail/loki.yaml | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 cookbooks/loki/templates/etc/promtail/loki.yaml diff --git a/cookbooks/loki/templates/etc/promtail/loki.yaml b/cookbooks/loki/templates/etc/promtail/loki.yaml deleted file mode 100644 index 6b9492b..0000000 --- a/cookbooks/loki/templates/etc/promtail/loki.yaml +++ /dev/null @@ -1,43 +0,0 @@ -server: - disable: true - -positions: - filename: /var/opt/promtail/promtail_loki_position.yaml - -clients: - - url: http://<%= @LOKIENDPOINT %>/loki/api/v1/push - -scrape_configs: - - job_name: loki - static_configs: - - targets: - - localhost - labels: - job: loki - hostname: <%= @HOSTNAME %> - __path__: /var/log/loki.log - - pipeline_stages: - - match: - selector: '{job="loki"}' - stages: - - drop: - expression: 'entry out of order' - - - regex: - expression: '^[^ ]+ +[0-9]+ [0-9]+:[0-9]+:[0-9]+ [^ ]+ loki[^ ]+ .*level=(?P[^ ]+) ts=(?P[^ ]+) (?P.+)$' - - - timestamp: - source: timestamp - format: 2006-01-02T15:04:05.999999999Z - location: Etc/GMT - - - template: - source: level - template: '{{ regexReplaceAllLiteral "warn" .Value "warning" }}' - - - labels: - level: - - - output: - source: message