Skip to content

Commit 74d8d85

Browse files
fix: Move shared processors outside KSM conditional block
Move k8sattributes/cw_k8s_ci_v0_pod and transform/cw_k8s_ci_v0_set_workload outside the kubeStateMetrics.enabled conditional so they render regardless of the KSM toggle. These processors are shared by the Karpenter pipeline and must be present even when KSM is disabled.
1 parent 6d0919f commit 74d8d85

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

charts/amazon-cloudwatch-observability/templates/linux/_otel-container-insights-cluster-scraper-config.tpl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,22 @@ processors:
300300
- set(attributes["owner_name"], resource.attributes["owner_name"]) where resource.attributes["owner_name"] != nil
301301
- set(attributes["owner_kind"], resource.attributes["owner_kind"]) where resource.attributes["owner_kind"] != nil
302302

303+
k8sattributes/cw_k8s_ci_v0_node:
304+
auth_type: serviceAccount
305+
passthrough: false
306+
extract:
307+
metadata:
308+
- k8s.node.name
309+
labels:
310+
- tag_name: "k8s.node.label.$$$1"
311+
key_regex: "(.*)"
312+
from: node
313+
pod_association:
314+
- sources:
315+
- from: resource_attribute
316+
name: k8s.node.name
317+
{{- end }}
318+
303319
k8sattributes/cw_k8s_ci_v0_pod:
304320
auth_type: serviceAccount
305321
passthrough: false
@@ -343,22 +359,6 @@ processors:
343359
- set(resource.attributes["k8s.workload.name"], resource.attributes["k8s.replicaset.name"]) where resource.attributes["k8s.workload.name"] == nil and resource.attributes["k8s.replicaset.name"] != nil
344360
- set(resource.attributes["k8s.workload.type"], "ReplicaSet") where resource.attributes["k8s.workload.type"] == nil and resource.attributes["k8s.replicaset.name"] != nil
345361

346-
k8sattributes/cw_k8s_ci_v0_node:
347-
auth_type: serviceAccount
348-
passthrough: false
349-
extract:
350-
metadata:
351-
- k8s.node.name
352-
labels:
353-
- tag_name: "k8s.node.label.$$$1"
354-
key_regex: "(.*)"
355-
from: node
356-
pod_association:
357-
- sources:
358-
- from: resource_attribute
359-
name: k8s.node.name
360-
{{- end }}
361-
362362
transform/cw_k8s_ci_v0_set_component:
363363
error_mode: ignore
364364
metric_statements:

0 commit comments

Comments
 (0)