migrate to yaml config
This commit is contained in:
parent
9871ba73ef
commit
8d9149d6ca
@ -27,7 +27,7 @@ services:
|
|||||||
- '8686:8686'
|
- '8686:8686'
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ./files/vector.toml:/etc/vector/vector.toml:ro
|
- ./files/vector.yaml:/etc/vector/vector.yaml:ro
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
clickhouse_data:
|
clickhouse_data:
|
||||||
|
43
files/vector.yaml
Normal file
43
files/vector.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
api:
|
||||||
|
enabled: true
|
||||||
|
address: '0.0.0.0:8686'
|
||||||
|
sources:
|
||||||
|
docker:
|
||||||
|
type: docker_logs
|
||||||
|
exclude_containers:
|
||||||
|
- clickhouse
|
||||||
|
- grafana
|
||||||
|
- vector
|
||||||
|
transforms:
|
||||||
|
ts_and_program:
|
||||||
|
type: remap
|
||||||
|
inputs:
|
||||||
|
- docker
|
||||||
|
source: |2
|
||||||
|
.logdatetime = to_unix_timestamp(now())
|
||||||
|
.program = .container_name
|
||||||
|
emptyprogram:
|
||||||
|
type: filter
|
||||||
|
inputs:
|
||||||
|
- ts_and_program
|
||||||
|
condition:
|
||||||
|
type: vrl
|
||||||
|
source: |2
|
||||||
|
.program != ""
|
||||||
|
dedupe:
|
||||||
|
type: dedupe
|
||||||
|
inputs:
|
||||||
|
- emptyprogram
|
||||||
|
sinks:
|
||||||
|
clickhouse:
|
||||||
|
type: clickhouse
|
||||||
|
inputs:
|
||||||
|
- dedupe
|
||||||
|
compression: gzip
|
||||||
|
endpoint: 'http://clickhouse:8123'
|
||||||
|
auth:
|
||||||
|
strategy: basic
|
||||||
|
user: default
|
||||||
|
password: default
|
||||||
|
database: default
|
||||||
|
table: log_docker_raw
|
Loading…
x
Reference in New Issue
Block a user