Plugin: otel.plugin Module: otel
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. Logs are stored in systemd-compatible journal files and can be explored through the Netdata Logs tab.
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 option | Description |
|---|---|
instrumentation_scope.name | Regex to match the instrumentation scope name |
instrumentation_scope.version | Regex to match the instrumentation scope version |
dimension_attribute_key | Data point attribute whose value becomes the dimension name |
interval_secs | Per-metric collection interval override (1–3600 seconds) |
grace_period_secs | Per-metric grace period override |
Incoming logs are written to journal files with configurable rotation and retention policies.
This collector is only supported on the following platforms:
This collector only supports collecting metrics from a single instance of this integration.
The plugin starts automatically and listens on 127.0.0.1:4317 for incoming OTLP/gRPC connections.
The default configuration for this integration does not impose any limits on data collection.
The default configuration for this integration is not expected to impose a significant performance impact on the system.
An OpenTelemetry Collector, SDK, or instrumented application configured to send OTLP data to the Netdata agent’s gRPC endpoint.
The plugin is configured via otel.yaml in the Netdata configuration directory.
| Option | Description | Default | Required |
|---|---|---|---|
| endpoint.path | gRPC endpoint to listen on for incoming OTLP data. | 127.0.0.1:4317 | no |
| endpoint.tls_cert_path | Path to TLS certificate file. Enables TLS when provided. | no | |
| endpoint.tls_key_path | Path to TLS private key file. Required when TLS certificate is provided. | no | |
| endpoint.tls_ca_cert_path | Path to TLS CA certificate file for client authentication. | no | |
| metrics.chart_configs_dir | Directory containing YAML files that define how OTLP metrics are mapped to Netdata charts. Each file 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. | /etc/netdata/otel.d/v1/metrics/ | no |
| metrics.interval_secs | Collection interval in seconds (1–3600). Defines the Netdata chart update frequency. | 10 | no |
| metrics.grace_period_secs | Grace period in seconds. After the last data point, the plugin waits this long before gap-filling. | 60 | no |
| metrics.expiry_duration_secs | Expiry duration in seconds. Charts with no data for this long are removed. | 900 | no |
| metrics.max_new_charts_per_request | Maximum number of new charts that can be created per gRPC request. Limits cardinality explosion from high-cardinality label combinations. | 100 | no |
| logs.journal_dir | Directory to store journal files for ingested logs. | yes | |
| logs.size_of_journal_file | Maximum file size before rotating to a new journal file. | 100MB | no |
| logs.entries_of_journal_file | Maximum log entries per journal file. | 50000 | no |
| logs.duration_of_journal_file | Maximum time span within a single journal file. | 2 hours | no |
| logs.number_of_journal_files | Maximum number of journal files to keep. | 10 | no |
| logs.size_of_journal_files | Maximum total size of all journal files. | 1GB | no |
| logs.duration_of_journal_files | Maximum age of journal files. | 7 days | no |
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
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
logs:
journal_dir: /var/log/netdata/otel-journals
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.
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
Listen with TLS enabled for secure connections.
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
logs:
journal_dir: /var/log/netdata/otel-journals
Metrics are dynamically created based on the OpenTelemetry data received. The specific metrics depend on the OTLP sources sending data to the plugin.
There are no alerts configured by default for this integration.
Want a personalised demo of Netdata for your use case?