Skip to content

Commit

Permalink
moving to closer to similar configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
pszkamruk-splunk committed Nov 12, 2024
1 parent fb0227d commit ec44b3c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ receivers:
{{- end }}

processors:
{{- include "splunk-otel-collector.k8sClusterReceiverAttributesProcessor" . | nindent 2 }}
{{/* {{- include "splunk-otel-collector.k8sClusterReceiverAttributesProcessor" . | nindent 2 }}*/}}
{{- include "splunk-otel-collector.otelMemoryLimiterConfig" . | nindent 2 }}

{{- if (eq (include "splunk-otel-collector.platformMetricsEnabled" $) "true") }}
Expand Down Expand Up @@ -118,6 +118,10 @@ processors:
- set(resource.attributes["com.splunk.sourcetype"], Concat(["kube:object:", attributes["k8s.resource.name"]], ""))
{{- end }}

{{- if and $clusterReceiver.eventsEnabled (eq (include "splunk-otel-collector.logsEnabled" .) "true") }}
{{- include "splunk-otel-collector.k8sClusterReceiverAttributesProcessor" . | nindent 2 }}
{{- end }}

# Resource attributes specific to the collector itself.
resource/add_collector_k8s:
attributes:
Expand Down

0 comments on commit ec44b3c

Please sign in to comment.