chore: Update promtail config to use new log format (#134)

Update promtail config to use new log format
This commit is contained in:
Anatolios Laskaris 2023-05-09 05:23:21 +03:00 committed by GitHub
parent 698d4e50b8
commit a2e3548cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,15 +13,12 @@ scrape_configs:
values: ["scrape=true"]
pipeline_stages:
- multiline:
firstline: '^[(?P<time>\S+)\s+\S+\s+\S+]'
firstline: '^(?P<time>\S+)\s+(?P<level>\S+)\s+\S+'
- regex:
expression: '^[(?P<time>\S+)\s+\S+\s+\S+].*'
expression: '^(?P<time>\S+)\s+(?P<level>\S+)\s+\S+.*'
- timestamp:
source: time
format: "RFC3339Nano"
- drop:
expression: "tide::log::middleware"
drop_counter_reason: "spam"
relabel_configs:
- source_labels: ["__meta_docker_container_label_name"]
target_label: "instance"