2023-03-22 15:59:01 +00:00
|
|
|
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:
|
2023-05-09 02:23:21 +00:00
|
|
|
firstline: '^(?P<time>\S+)\s+(?P<level>\S+)\s+\S+'
|
2023-03-22 15:59:01 +00:00
|
|
|
- regex:
|
2023-05-09 02:23:21 +00:00
|
|
|
expression: '^(?P<time>\S+)\s+(?P<level>\S+)\s+\S+.*'
|
2023-03-22 15:59:01 +00:00
|
|
|
- timestamp:
|
|
|
|
source: time
|
|
|
|
format: "RFC3339Nano"
|
|
|
|
relabel_configs:
|
|
|
|
- source_labels: ["__meta_docker_container_label_name"]
|
|
|
|
target_label: "instance"
|
|
|
|
- replacement: "demo"
|
|
|
|
target_label: env
|