new version with OTEL

This commit is contained in:
2026-08-04 17:22:35 +01:00
parent 62a06a9548
commit 1acad354dc
7 changed files with 42 additions and 12 deletions
+1
View File
@@ -16,3 +16,4 @@
proc = no
idlejitter = no
diskspace = no
otel = yes
+26
View File
@@ -0,0 +1,26 @@
# OpenTelemetry Plugin Configuration (otel.plugin)
# Documented config surface only — see:
# https://learn.netdata.cloud/docs/collecting-metrics/opentelemetry/opentelemetry-metrics
#
# Any field can also be overridden via NETDATA_OTEL_<FIELD> env vars
# (dots -> underscores, e.g. endpoint.tls_cert_path -> NETDATA_OTEL_ENDPOINT_TLS_CERT_PATH).
#
# NOTE: fields like logs.rotation/retention, remote_storage, and auth appeared in an
# earlier version of this config but are NOT present in the current documented schema.
# Left out here rather than guessed — reintroduce only once confirmed against the
# running agent version (e.g. via `otel.plugin --help` in the container, or Ask Nedi).
endpoint:
# 0.0.0.0 so traffic arriving via the ClusterIP Service actually reaches the process
# (127.0.0.1 would only accept connections from inside the same network namespace).
path: "0.0.0.0:4317"
tls_cert_path: null
tls_key_path: null
tls_ca_cert_path: null
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
+8 -2
View File
@@ -30,9 +30,9 @@ spec:
- name: NETDATA_CLAIM_URL
value: "https://api.netdata.cloud"
- name: NETDATA_CLAIM_TOKEN
value: "CIlCwV6GawNWIfhrqMVmPAJixo_BSaGvwVbHKFOCQCHbYG5J8Ac0FDxKrObJ727F1dndg8J-v6apUhzGho6RIOlkrqJ_F7DKodjLqbsSWb7Ta-GSHkkuHcTXidxKxEo5RK0jiqU"
value: "REDACTED"
- name: NETDATA_CLAIM_ROOMS
value: "e15a4f12-89d7-4d5b-b588-6658fa835473"
value: "REDACTED"
- name: MY_POD_NAME
valueFrom:
fieldRef:
@@ -47,6 +47,9 @@ spec:
- name: http
containerPort: 19999
protocol: TCP
- name: otel-grpc
containerPort: 4317
protocol: TCP
livenessProbe:
exec:
command: ["/usr/sbin/netdatacli", "ping"]
@@ -78,6 +81,9 @@ spec:
- name: configmap
mountPath: /etc/netdata/stream.conf
subPath: stream
- name: configmap
mountPath: /etc/netdata/otel.yaml
subPath: otel
- name: database
mountPath: /var/cache/netdata
- name: alarms
+4
View File
@@ -12,6 +12,10 @@ spec:
targetPort: http
protocol: TCP
name: http
- port: 4317
targetPort: otel-grpc
protocol: TCP
name: otel-grpc
selector:
app: netdata
role: parent