mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-20 23:46:23 +01:00
711f2cc4f2
Commit adds the following changes: * Adds support of OpenTelemetry logs for Victoria Logs with protobuf encoded messages * json encoding is not supported for the following reasons: - It brings a lot of fragile code, which works inefficiently. - json encoding is impossible to use with language SDK. * splits metrics and logs structures at lib/protoparser/opentelemetry/pb package. * adds docs with examples for opentelemetry logs. --- Related issue: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4839 Co-authored-by: AndrewChubatiuk <andrew.chubatiuk@gmail.com> Co-authored-by: f41gh7 <nik@victoriametrics.com>
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
services:
|
|
collector:
|
|
image: docker.io/otel/opentelemetry-collector-contrib:0.102.1
|
|
restart: on-failure
|
|
volumes:
|
|
- $PWD/logs:/tmp/logs
|
|
- $PWD/config.yaml:/etc/otelcol-contrib/config.yaml
|
|
depends_on:
|
|
victorialogs:
|
|
condition: service_healthy
|
|
victoriametrics:
|
|
condition: service_healthy
|
|
|
|
victorialogs:
|
|
image: docker.io/victoriametrics/victoria-logs:v0.29.0-victorialogs
|
|
volumes:
|
|
- victorialogs-vector-docker-vl:/otlp
|
|
ports:
|
|
- '9428:9428'
|
|
command:
|
|
- -storageDataPath=/otlp
|
|
- -loggerFormat=json
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:9428/health"]
|
|
interval: 1s
|
|
timeout: 1s
|
|
retries: 10
|
|
|
|
victoriametrics:
|
|
image: victoriametrics/victoria-metrics:latest
|
|
ports:
|
|
- '8428:8428'
|
|
command:
|
|
- -storageDataPath=/vmsingle
|
|
- -promscrape.config=/promscrape.yml
|
|
- -loggerFormat=json
|
|
volumes:
|
|
- victorialogs-vector-docker-vm:/vmsingle
|
|
- ./scrape.yml:/promscrape.yml
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8428/health"]
|
|
interval: 1s
|
|
timeout: 1s
|
|
retries: 10
|
|
|
|
volumes:
|
|
victorialogs-vector-docker-vl:
|
|
victorialogs-vector-docker-vm:
|