Skip to main content

exporter.otlp

OpenTelemetry Protocol (OTLP) exporter allows you to send monitoring data to any backend that supports the OpenTelemetry Protocol (OTLP). This enables integration with a wide range of observability platforms and tools.

Arguments

You can use the following arguments with exporter.otlp:

NameTypeDescriptionDefaultRequired
urlstringOpenTelemetry collector endpoint URL (e.g., http://localhost:4317).yes
tls_insecurebooleanSkip TLS certificate verification.falseno
authobjectAuthentication configuration (see auth block below).no
cert_pathstringPath to a custom CA certificate file for TLS verification.no
metric_prefixstringOptional prefix to prepend to all metric names.probe_no

metric_prefix is an optional string that, if provided, will be prepended to all metric names exported by this exporter. This can be useful for namespacing metrics in environments where multiple applications or services are sending metrics to the same backend. If not specified or empty, prefix applied is probe_.

Auth Block

NameTypeDescriptionDefaultRequired
usernamestringUsername for basic authentication.no
passwordstringPassword for basic authentication.no
bearerstringBearer token for authentication.no

Example

exporter "otlp" "default" {
url = "http://localhost:4317"
tls_insecure = true
}

Resources