mirror of
https://github.com/fluencelabs/node-distro
synced 2024-12-04 23:30:17 +00:00
chore: Update promtail config to use new log format (#134)
Update promtail config to use new log format
This commit is contained in:
parent
698d4e50b8
commit
a2e3548cf9
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user