Back to Victoriametrics

OpenTelemetry Collector

docs/victoriametrics/data-ingestion/OpenTelemetry-Collector.md

1.145.01.2 KB
Original Source

OpenTelemetry Collector is a vendor-agnostic agent for receiving, processing, and exporting telemetry data. VictoriaMetrics supports the OTLP metrics protocol natively, so the collector can push metrics directly using the otlphttp exporter.

Use the following exporter configuration:

yaml
exporters:
  otlphttp/victoriametrics:
    compression: gzip
    encoding: proto
    metrics_endpoint: http://<vmsingle>:8428/opentelemetry/v1/metrics

For the cluster version specify the tenant ID: http://<vminsert>:8480/insert/<accountID>/opentelemetry/v1/metrics. See more about multitenancy.

Add the exporter to the desired service pipeline to activate it:

yaml
service:
  pipelines:
    metrics:
      exporters:
        - otlphttp/victoriametrics
      receivers:
        - otlp

See OpenTelemetry integration for details on metric naming and histogram conversion.