mirror of
https://github.com/fluencelabs/node-distro
synced 2024-12-13 11:15:35 +00:00
a2e3548cf9
Update promtail config to use new log format
27 lines
709 B
YAML
27 lines
709 B
YAML
positions:
|
|
filename: "/data/positions.yml"
|
|
|
|
clients:
|
|
- url: "http://loki:3100/loki/api/v1/push"
|
|
|
|
scrape_configs:
|
|
- job_name: "rust-peer"
|
|
docker_sd_configs:
|
|
- host: unix:///var/run/docker.sock
|
|
filters:
|
|
- name: label
|
|
values: ["scrape=true"]
|
|
pipeline_stages:
|
|
- multiline:
|
|
firstline: '^(?P<time>\S+)\s+(?P<level>\S+)\s+\S+'
|
|
- regex:
|
|
expression: '^(?P<time>\S+)\s+(?P<level>\S+)\s+\S+.*'
|
|
- timestamp:
|
|
source: time
|
|
format: "RFC3339Nano"
|
|
relabel_configs:
|
|
- source_labels: ["__meta_docker_container_label_name"]
|
|
target_label: "instance"
|
|
- replacement: "demo"
|
|
target_label: env
|