OtelBridge.Profile.VictoriaMetrics (otel_bridge v0.1.2)

Copy Markdown View Source

Built-in export profile for VictoriaMetrics.

Use this profile when you want otel_bridge to emit metrics through an OTLP metric reader configured for VictoriaMetrics-compatible workflows.

This profile configures cumulative temporality for synchronous counters and histograms to align with VictoriaMetrics and Prometheus-style query expectations.

Typical usage

config :opentelemetry_experimental,
  readers: [
    OtelBridge.metric_reader!(:victoria_metrics,
      export_interval_ms: 5_000,
      endpoint: "http://localhost:4318"
    )
  ]

If you need different backend behavior, create another OtelBridge.Profile implementation instead of changing business metric definitions.

Summary

Functions

Returns the synchronous temporality defaults used by this profile.

Builds an :otel_metric_reader configuration for VictoriaMetrics.

Functions

default_temporality_mapping()

Returns the synchronous temporality defaults used by this profile.

metric_reader(opts)

Builds an :otel_metric_reader configuration for VictoriaMetrics.

Required options:

  • :export_interval_ms
  • :endpoint

Optional options:

  • :protocol - defaults to :http_protobuf