mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-18 22:52:11 +01:00
74 lines
1.5 KiB
YAML
74 lines
1.5 KiB
YAML
|
api:
|
||
|
enabled: true
|
||
|
address: 0.0.0.0:8686
|
||
|
sources:
|
||
|
docker:
|
||
|
type: docker_logs
|
||
|
demo:
|
||
|
type: demo_logs
|
||
|
format: json
|
||
|
metrics:
|
||
|
type: internal_metrics
|
||
|
transforms:
|
||
|
msg_parser:
|
||
|
type: remap
|
||
|
inputs:
|
||
|
- docker
|
||
|
source: |
|
||
|
.log = parse_json!(.message)
|
||
|
del(.message)
|
||
|
sinks:
|
||
|
vlogs_http:
|
||
|
type: http
|
||
|
inputs:
|
||
|
- msg_parser
|
||
|
uri: http://victorialogs:9428/insert/jsonline?_stream_fields=source_type,host,container_name&_msg_field=log.msg&_time_field=timestamp
|
||
|
encoding:
|
||
|
codec: json
|
||
|
framing:
|
||
|
method: newline_delimited
|
||
|
compression: gzip
|
||
|
healthcheck:
|
||
|
enabled: false
|
||
|
request:
|
||
|
headers:
|
||
|
AccountID: '0'
|
||
|
ProjectID: '0'
|
||
|
vlogs_loki:
|
||
|
type: loki
|
||
|
inputs:
|
||
|
- demo
|
||
|
endpoint: http://victorialogs:9428/insert/loki/
|
||
|
compression: gzip
|
||
|
path: /api/v1/push?_msg_field=message.message&_time_field=timestamp&_stream_fields=source
|
||
|
encoding:
|
||
|
codec: json
|
||
|
labels:
|
||
|
source: vector
|
||
|
victoriametrics:
|
||
|
type: prometheus_remote_write
|
||
|
endpoint: http://victoriametrics:8428/api/v1/write
|
||
|
inputs:
|
||
|
- metrics
|
||
|
healthcheck:
|
||
|
enabled: false
|
||
|
vlogs_es:
|
||
|
type: elasticsearch
|
||
|
inputs:
|
||
|
- demo
|
||
|
endpoints:
|
||
|
- http://victorialogs:9428/insert/elasticsearch/
|
||
|
mode: bulk
|
||
|
api_version: v8
|
||
|
compression: gzip
|
||
|
healthcheck:
|
||
|
enabled: false
|
||
|
query:
|
||
|
_msg_field: message
|
||
|
_time_field: timestamp
|
||
|
_stream_fields: source_type
|
||
|
request:
|
||
|
headers:
|
||
|
AccountID: '0'
|
||
|
ProjectID: '0'
|