Skip to content

Commit 704a9a8

Browse files
committed
STAC-23561: rely on operator for k8s attributes
1 parent 590918c commit 704a9a8

File tree

1 file changed

+4
-33
lines changed

1 file changed

+4
-33
lines changed

docs/latest/modules/en/pages/setup/otel/getting-started/getting-started-k8s-operator.adoc

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -162,33 +162,6 @@ spec:
162162
endpoint: <otlp-suse-observability-endpoint:port>
163163
compression: snappy
164164
processors:
165-
k8sattributes:
166-
passthrough: false
167-
pod_association:
168-
- sources:
169-
- from: resource_attribute
170-
name: k8s.pod.ip
171-
- sources:
172-
- from: resource_attribute
173-
name: k8s.pod.uid
174-
- sources:
175-
- from: connection
176-
extract:
177-
metadata:
178-
- k8s.namespace.name
179-
- k8s.deployment.name
180-
- k8s.statefulset.name
181-
- k8s.daemonset.name
182-
- k8s.cronjob.name
183-
- k8s.job.name
184-
- k8s.node.name
185-
- k8s.pod.name
186-
- k8s.pod.uid
187-
- k8s.pod.start_time
188-
labels:
189-
- tag_name: $$1
190-
key_regex: (.*)
191-
from: pod
192165
memory_limiter:
193166
check_interval: 5s
194167
limit_percentage: 80
@@ -217,15 +190,15 @@ spec:
217190
pipelines:
218191
traces:
219192
receivers: [otlp]
220-
processors: [k8sattributes, memory_limiter, resource, batch]
193+
processors: [memory_limiter, resource, batch]
221194
exporters: [debug, spanmetrics, otlp/suse-observability]
222195
metrics:
223196
receivers: [otlp, spanmetrics, prometheus]
224-
processors: [k8sattributes, memory_limiter, resource, batch]
197+
processors: [memory_limiter, resource, batch]
225198
exporters: [debug, otlp/suse-observability]
226199
logs:
227200
receivers: [otlp]
228-
processors: [k8sattributes]
201+
processors: []
229202
exporters: [nop]
230203
telemetry:
231204
metrics:
@@ -236,8 +209,6 @@ spec:
236209
[CAUTION]
237210
====
238211
*Use the same cluster name as used for installing the SUSE Observability agent* if you also use the SUSE Observability agent with the Kubernetes stackpack. Using a different cluster name will result in an empty traces perspective for Kubernetes components and will overall make correlating information much harder for SUSE Observability and your users.
239-
240-
The `k8sattributes` processor must be the first in the pipelines. This lets it identify the pod that is sending the data.
241212
====
242213

243214

@@ -354,7 +325,7 @@ For xref:/setup/security/rbac/rbac_rancher.adoc[Rancher RBAC] to work, telemetry
354325
* `k8s.cluster.name` - the *Cluster* name as used by the Kubernetes stackpack
355326
* `k8s.namespace.name` - a *Namespace* managed by a Rancher *Project*
356327

357-
This can be achieved by a configuration such as above. There the `kubernetesAttributes` preset of the `opentelemetry-collector` Helm chart injects a `k8sattributes` processor into each pipeline.
328+
The Kubernetes Operator will inject these attributes by default into any telemetry data that is sent.
358329

359330
== Next steps
360331

0 commit comments

Comments
 (0)