How to Send OTel Traces, Logs and Metrics to the VictoriaMetrics Stack in Go
VictoriaMetrics now offers dedicated components for all three OpenTelemetry signals: VictoriaMetrics for metrics, VictoriaLogs for logs, and VictoriaTraces for traces, each accessible directly via OTLP/HTTP without a collector. Each component listens on a separate port and path, with metrics notably lacking the '/insert' prefix that logs and traces require, making copy-paste errors easy to introduce. The Go OTel SDK is split across multiple modules, requiring individual exporters per signal, which means several 'go get' commands before the setup compiles. A key gotcha is that misconfigured paths produce no errors by default — the exporter silently swallows 404s — so setting up a global OTel error handler early in development is strongly recommended. For endpoint configuration, 'WithEndpointURL' is the simpler choice, accepting a full URL including scheme, versus 'WithEndpoint' which requires separate options for path and insecure mode.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in