Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions charts/netdata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down
9 changes: 5 additions & 4 deletions charts/netdata/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
40 changes: 19 additions & 21 deletions templates/netdata-README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down
Loading