Skip to main content

OpenTelemetry

Plugin: otel.plugin Module: otel

Overview

This plugin enables the Netdata Agent to receive OpenTelemetry metrics and logs via the OTLP/gRPC protocol from any compatible source — collectors, SDKs, or instrumented applications.

Metrics are automatically visualized as Netdata charts with full alerting support. OpenTelemetry logs received on the same endpoint are covered by the separate "OpenTelemetry Logs" integration.

The plugin listens on a configurable gRPC endpoint for incoming OTLP data.

Incoming metrics are mapped to Netdata charts using YAML mapping rules placed in the chart configs directory (default /etc/netdata/otel.d/v1/metrics/). Each file can contain entries that match metrics by instrumentation scope and metric name, and control how data point attributes translate to chart instances and dimensions. Per-metric overrides for the collection interval and grace period are also supported. Without a matching rule, the plugin creates charts using default settings. Charts with no incoming data are automatically expired and removed.

Mapping file optionDescription
instrumentation_scope.nameRegex to match the instrumentation scope name
instrumentation_scope.versionRegex to match the instrumentation scope version
dimension_attribute_keyData point attribute whose value becomes the dimension name
interval_secsPer-metric collection interval override (1–3600 seconds)
grace_period_secsPer-metric grace period override

This collector is only supported on the following platforms:

  • Linux

This collector only supports collecting metrics from a single instance of this integration.

Default Behavior

Auto-Detection

The plugin starts automatically and listens on 127.0.0.1:4317 for incoming OTLP/gRPC connections.

Limits

The default configuration for this integration does not impose any limits on data collection.

Performance Impact

The default configuration for this integration is not expected to impose a significant performance impact on the system.

Setup

Prerequisites

OpenTelemetry data source

An OpenTelemetry Collector, SDK, or instrumented application configured to send OTLP data to the Netdata agent's gRPC endpoint.

Configuration

Options

The plugin is configured via otel.yaml in the Netdata configuration directory. Only the fields you want to change need to be specified.

Any option can also be overridden via environment variables with the NETDATA_OTEL_ prefix (highest priority). The variable name is the config option in all caps with dots replaced by underscores — e.g. endpoint.tls_cert_path becomes NETDATA_OTEL_ENDPOINT_TLS_CERT_PATH.

Config options
OptionDescriptionDefaultRequired
endpoint.pathgRPC endpoint to listen on for incoming OTLP data.127.0.0.1:4317no
endpoint.tls_cert_pathPath to TLS certificate file. Enables TLS when provided.no
endpoint.tls_key_pathPath to TLS private key file. Required when TLS certificate is provided.no
endpoint.tls_ca_cert_pathPath to TLS CA certificate file for client authentication.no
metrics.chart_configs_dirDirectory containing metric mapping YAML files./etc/netdata/otel.d/v1/metrics/no
metrics.interval_secsCollection interval in seconds (1–3600). Defines the Netdata chart update frequency.10no
metrics.grace_period_secsGrace period in seconds. After the last data point, the plugin waits this long before gap-filling.60no
metrics.expiry_duration_secsExpiry duration in seconds. Charts with no data for this long are removed.900no
metrics.max_new_charts_per_requestMaximum new charts created per gRPC request.100no
metrics.chart_configs_dir

Each file defines how OTLP metrics are mapped to Netdata charts. Files can match metrics by instrumentation scope and name, set the dimension attribute key, and override timing parameters. The plugin ships stock mappings; user files in this directory take priority.

metrics.max_new_charts_per_request

Limits cardinality explosion from high-cardinality label combinations.

via File

The configuration file name for this integration is otel.yaml.

You can edit the configuration file using the edit-config script from the Netdata config directory.

cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config otel.yaml
Examples
Basic configuration

Listen on default endpoint with default settings.

endpoint:
path: "127.0.0.1:4317"
metrics:
chart_configs_dir: /etc/netdata/otel.d/v1/metrics/
interval_secs: 10
grace_period_secs: 60
expiry_duration_secs: 900
max_new_charts_per_request: 100

Partial user override

Override only specific fields in the user config. All other settings are inherited from the stock config. Unknown fields are ignored for forward compatibility.

Config
endpoint:
path: "0.0.0.0:4317"

Metric mapping file

Place YAML files like this in /etc/netdata/otel.d/v1/metrics/ to control how OTLP metrics are mapped to Netdata charts. This example maps metrics from the OpenTelemetry Collector hostmetrics receiver.

Config
metrics:
"system.network.connections":
- instrumentation_scope:
name: .*hostmetricsreceiver.*networkscraper$
dimension_attribute_key: state

"system.cpu.utilization":
- instrumentation_scope:
name: .*hostmetricsreceiver.*cpuscraper$
dimension_attribute_key: state

"system.memory.usage":
- instrumentation_scope:
name: .*hostmetricsreceiver.*memoryscraper$
dimension_attribute_key: state
interval_secs: 5

TLS-enabled configuration

Listen with TLS enabled for secure connections.

Config
endpoint:
path: "0.0.0.0:4317"
tls_cert_path: /etc/netdata/ssl/cert.pem
tls_key_path: /etc/netdata/ssl/key.pem
metrics:
chart_configs_dir: /etc/netdata/otel.d/v1/metrics/
interval_secs: 10
grace_period_secs: 60
expiry_duration_secs: 900
max_new_charts_per_request: 100

Alerts

There are no alerts configured by default for this integration.

Metrics

Metrics are dynamically created based on the OpenTelemetry data received. The specific metrics depend on the OTLP sources sending data to the plugin.


Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.