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:

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

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:

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

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