From 8bc5fe9ba472bdb54e6a5dcf91a29f14165cf845 Mon Sep 17 00:00:00 2001 From: vkalintiris Date: Mon, 30 Nov 2026 11:02:11 +0200 Subject: [PATCH] Use the current OTel plugin config keys for netdata-otel Netdata v2.13 renamed the OTLP receiver settings: `endpoint.path` and the `tls_*_path` keys became `receivers.otlp.protocols.grpc.endpoint` and `receivers.otlp.protocols.grpc.tls.*`. The old names still work but log a deprecation warning on every start. - Switch the default netdata-otel otel.yaml to the new receiver keys. - Drop `otel-signal-viewer` and `journal-viewer` from the netdata-otel netdata.conf: neither is a plugin in current agents. - Rewrite the README TLS example on the new schema. The old example also carried removed `metrics` and journal-file `logs` keys, which current agents reject, so the plugin would not start when it was copied. - Point clients at their own CA setting (`tls.ca_file`) rather than the receiver's client-CA key. --- charts/netdata/README.md | 40 ++++++++++++++---------------- charts/netdata/values.yaml | 9 ++++--- templates/netdata-README.md.gotmpl | 40 ++++++++++++++---------------- 3 files changed, 43 insertions(+), 46 deletions(-) diff --git a/charts/netdata/README.md b/charts/netdata/README.md index 1554e90..1fca59c 100644 --- a/charts/netdata/README.md +++ b/charts/netdata/README.md @@ -2358,7 +2358,7 @@ netdata-otel:4317 → stored and shown in the Netdata UI #### Securing the endpoint with TLS By default the `netdata-otel` receiver listens on port `4317` in **plaintext** — TLS is **disabled** -(`tls_cert_path`, `tls_key_path`, and `tls_ca_cert_path` are unset in +(the `receivers.otlp.protocols.grpc.tls` settings are unset in `netdataOpentelemetry.configs.otel.data`). The steps below turn it on with a self-signed certificate. TLS affects **both sides**: the receiver must serve the certificate, and every client (including the bundled `otel-collector`) must be switched to TLS, or it will stop delivering data. @@ -2381,7 +2381,7 @@ kubectl create secret tls netdata-otel-tls \ **3. Mount the secret into the receiver and point the config at it.** The certificate paths live inside `netdataOpentelemetry.configs.otel.data`, which is a single block — supply it in full with -the two `tls_*_path` values filled in (keep the `metrics` and `logs` sections in sync with the +`cert_file` and `key_file` filled in (keep the `logs` and `traces` sections in sync with the chart's `values.yaml`). Mounting the secret alone does nothing until these paths are set: ```yaml @@ -2397,24 +2397,22 @@ netdataOpentelemetry: configs: otel: data: | - endpoint: - path: "0.0.0.0:4317" - tls_cert_path: /etc/netdata/otel-certs/tls.crt - tls_key_path: /etc/netdata/otel-certs/tls.key - tls_ca_cert_path: null - metrics: - print_flattened: false - buffer_samples: 10 - throttle_charts: 100 - chart_configs_dir: otel.d/v1/metrics + receivers: + otlp: + protocols: + grpc: + endpoint: "0.0.0.0:4317" + tls: + cert_file: /etc/netdata/otel-certs/tls.crt + key_file: /etc/netdata/otel-certs/tls.key logs: - journal_dir: otel/v1 - size_of_journal_file: "100MB" - number_of_journal_files: 10 - size_of_journal_files: "1GB" - duration_of_journal_files: "7 days" - duration_of_journal_file: "2 hours" - store_otlp_json: false + retention: + default: + max_total_size: "5GB" + traces: + retention: + default: + max_total_size: "5GB" ``` **4. Switch every client to TLS.** A TLS listener rejects plaintext connections, so any sender must @@ -2438,8 +2436,8 @@ Apply the same change to any external OTLP client — Fluent Bit, Vector, or ano pointing at the `netdata-otel` service. > For production, replace the self-signed certificate with one issued by a trusted CA, give it a -> `CN`/`SAN` that matches the `netdata-otel` service DNS name, and have clients trust that CA via -> `tls_ca_cert_path` instead of skipping verification. +> `CN`/`SAN` that matches the `netdata-otel` service DNS name, and have clients trust that CA (for +> the `otel-collector` exporter, `tls.ca_file`) instead of skipping verification. ### Service discovery and supported services diff --git a/charts/netdata/values.yaml b/charts/netdata/values.yaml index dadabdc..8bb2150 100644 --- a/charts/netdata/values.yaml +++ b/charts/netdata/values.yaml @@ -1043,8 +1043,6 @@ netdataOpentelemetry: cgroups = no enable running new plugins = no otel = yes - otel-signal-viewer = yes - journal-viewer = yes slabinfo = no perf = no go.d = yes @@ -1070,8 +1068,11 @@ netdataOpentelemetry: enabled: true path: /etc/netdata/otel.yaml data: | - endpoint: - path: {{ printf "\"0.0.0.0:%v\"" .Values.netdataOpentelemetry.service.port }} + receivers: + otlp: + protocols: + grpc: + endpoint: {{ printf "\"0.0.0.0:%v\"" .Values.netdataOpentelemetry.service.port }} logs: retention: default: diff --git a/templates/netdata-README.md.gotmpl b/templates/netdata-README.md.gotmpl index ce691e9..dac89c4 100644 --- a/templates/netdata-README.md.gotmpl +++ b/templates/netdata-README.md.gotmpl @@ -257,7 +257,7 @@ netdata-otel:4317 → stored and shown in the Netdata UI #### Securing the endpoint with TLS By default the `netdata-otel` receiver listens on port `4317` in **plaintext** — TLS is **disabled** -(`tls_cert_path`, `tls_key_path`, and `tls_ca_cert_path` are unset in +(the `receivers.otlp.protocols.grpc.tls` settings are unset in `netdataOpentelemetry.configs.otel.data`). The steps below turn it on with a self-signed certificate. TLS affects **both sides**: the receiver must serve the certificate, and every client (including the bundled `otel-collector`) must be switched to TLS, or it will stop delivering data. @@ -280,7 +280,7 @@ kubectl create secret tls netdata-otel-tls \ **3. Mount the secret into the receiver and point the config at it.** The certificate paths live inside `netdataOpentelemetry.configs.otel.data`, which is a single block — supply it in full with -the two `tls_*_path` values filled in (keep the `metrics` and `logs` sections in sync with the +`cert_file` and `key_file` filled in (keep the `logs` and `traces` sections in sync with the chart's `values.yaml`). Mounting the secret alone does nothing until these paths are set: ```yaml @@ -296,24 +296,22 @@ netdataOpentelemetry: configs: otel: data: | - endpoint: - path: "0.0.0.0:4317" - tls_cert_path: /etc/netdata/otel-certs/tls.crt - tls_key_path: /etc/netdata/otel-certs/tls.key - tls_ca_cert_path: null - metrics: - print_flattened: false - buffer_samples: 10 - throttle_charts: 100 - chart_configs_dir: otel.d/v1/metrics + receivers: + otlp: + protocols: + grpc: + endpoint: "0.0.0.0:4317" + tls: + cert_file: /etc/netdata/otel-certs/tls.crt + key_file: /etc/netdata/otel-certs/tls.key logs: - journal_dir: otel/v1 - size_of_journal_file: "100MB" - number_of_journal_files: 10 - size_of_journal_files: "1GB" - duration_of_journal_files: "7 days" - duration_of_journal_file: "2 hours" - store_otlp_json: false + retention: + default: + max_total_size: "5GB" + traces: + retention: + default: + max_total_size: "5GB" ``` **4. Switch every client to TLS.** A TLS listener rejects plaintext connections, so any sender must @@ -337,8 +335,8 @@ Apply the same change to any external OTLP client — Fluent Bit, Vector, or ano pointing at the `netdata-otel` service. > For production, replace the self-signed certificate with one issued by a trusted CA, give it a -> `CN`/`SAN` that matches the `netdata-otel` service DNS name, and have clients trust that CA via -> `tls_ca_cert_path` instead of skipping verification. +> `CN`/`SAN` that matches the `netdata-otel` service DNS name, and have clients trust that CA (for +> the `otel-collector` exporter, `tls.ca_file`) instead of skipping verification. ### Service discovery and supported services