Skip to content

Commit

Permalink
Add some missing fields of SCK
Browse files Browse the repository at this point in the history
  • Loading branch information
Vihas Makwana committed Feb 10, 2023
1 parent 8aaa664 commit e9f1403
Show file tree
Hide file tree
Showing 20 changed files with 75 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ resource/logs:
{{- end }}
{{- end }}
{{- end }}

transform/sck_fields:
log_statements:
- context: log
statements:
- set(resource.attributes["container_image"], Concat([resource.attributes["container.image.name"], resource.attributes["container.image.tag"]], ":"))
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,9 @@ service:
- batch
- resource
{{- if not $gatewayEnabled }}
{{- if .Values.splunkPlatform.fieldNameConvention.renameFieldsSck }}
- transform/sck_fields
{{- end }}
- resource/logs
{{- end }}
- resourcedetection
Expand Down
6 changes: 6 additions & 0 deletions rendered/manifests/agent-only/configmap-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ data:
- system
override: true
timeout: 10s
transform/sck_fields:
log_statements:
- context: log
statements:
- set(resource.attributes["container_image"], Concat([resource.attributes["container.image.name"],
resource.attributes["container.image.tag"]], ":"))
receivers:
hostmetrics:
collection_interval: 10s
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/agent-only/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: f24285909af0884c7557482977a7a54aa1294e3a121a5cf78d7572a19fc5bafd
checksum/config: 049014f601e42813b9b5b9ccd071b6238e31a86df263a9f3e2f6f2aa2b1375d7
kubectl.kubernetes.io/default-container: otel-collector
spec:
hostNetwork: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ data:
- system
override: true
timeout: 10s
transform/sck_fields:
log_statements:
- context: log
statements:
- set(resource.attributes["container_image"], Concat([resource.attributes["container.image.name"],
resource.attributes["container.image.tag"]], ":"))
receivers:
filelog:
encoding: utf-8
Expand Down Expand Up @@ -344,6 +350,7 @@ data:
- filter/logs
- batch
- resource
- transform/sck_fields
- resource/logs
- resourcedetection
receivers:
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/cluster-receiver-objects/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: 615e6ecdac1dbd088376a5473f7b107f2e990ed3283b7911cecdbaf46f5059b6
checksum/config: 32b79b34331f22f51e732b7a346c92a5512f14faf4080b4d9127d221d6d539a1
kubectl.kubernetes.io/default-container: otel-collector
spec:
hostNetwork: true
Expand Down
6 changes: 6 additions & 0 deletions rendered/manifests/eks-fargate/configmap-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ data:
- system
override: true
timeout: 10s
transform/sck_fields:
log_statements:
- context: log
statements:
- set(resource.attributes["container_image"], Concat([resource.attributes["container.image.name"],
resource.attributes["container.image.tag"]], ":"))
receivers:
jaeger:
protocols:
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/eks-fargate/deployment-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
component: otel-collector
release: default
annotations:
checksum/config: 4bfe8002d655d77fd9c91437a5fdfa6b21f8d1a6888dffc8bd352a18f10b0204
checksum/config: 97c9e722e8c0848ff511f9b9bbcd37998bc2658a40de30705a15bdbc782d1ff1
spec:
serviceAccountName: default-splunk-otel-collector
nodeSelector:
Expand Down
6 changes: 6 additions & 0 deletions rendered/manifests/gateway-only/configmap-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ data:
- system
override: true
timeout: 10s
transform/sck_fields:
log_statements:
- context: log
statements:
- set(resource.attributes["container_image"], Concat([resource.attributes["container.image.name"],
resource.attributes["container.image.tag"]], ":"))
receivers:
jaeger:
protocols:
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/gateway-only/deployment-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
component: otel-collector
release: default
annotations:
checksum/config: 0a71c96ab49070efbab9792ac6bd2a7fd6c79456ffbd8742ee2dda17103c2ae6
checksum/config: b167e2d8128b9a576780e47aedcab7dd65e44a3723428e7226f884c392673ec0
spec:
serviceAccountName: default-splunk-otel-collector
nodeSelector:
Expand Down
7 changes: 7 additions & 0 deletions rendered/manifests/logs-only/configmap-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ data:
- system
override: true
timeout: 10s
transform/sck_fields:
log_statements:
- context: log
statements:
- set(resource.attributes["container_image"], Concat([resource.attributes["container.image.name"],
resource.attributes["container.image.tag"]], ":"))
receivers:
fluentforward:
endpoint: 0.0.0.0:8006
Expand Down Expand Up @@ -172,6 +178,7 @@ data:
- filter/logs
- batch
- resource
- transform/sck_fields
- resource/logs
- resourcedetection
receivers:
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/logs-only/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: c72a5536ce2ddd9792af9317f7d0f7b61e52a9f46c9e1819f79075f3da4c0311
checksum/config: 18908ebfd6f759e74e2ba14e8a71d9c04475831b901faed559eff77339503636
kubectl.kubernetes.io/default-container: otel-collector
spec:
hostNetwork: true
Expand Down
6 changes: 6 additions & 0 deletions rendered/manifests/metrics-only/configmap-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ data:
- system
override: true
timeout: 10s
transform/sck_fields:
log_statements:
- context: log
statements:
- set(resource.attributes["container_image"], Concat([resource.attributes["container.image.name"],
resource.attributes["container.image.tag"]], ":"))
receivers:
hostmetrics:
collection_interval: 10s
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/metrics-only/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: 59819d366b1050061720f5fdd77ca4b47469bb212e45a875f610857d0e2f426f
checksum/config: 443a6a66451af9b57d33e821a6fb7637c215181f4788c9feec71493b772fc3c7
kubectl.kubernetes.io/default-container: otel-collector
spec:
hostNetwork: true
Expand Down
6 changes: 6 additions & 0 deletions rendered/manifests/network-explorer/configmap-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ data:
- system
override: true
timeout: 10s
transform/sck_fields:
log_statements:
- context: log
statements:
- set(resource.attributes["container_image"], Concat([resource.attributes["container.image.name"],
resource.attributes["container.image.tag"]], ":"))
receivers:
jaeger:
protocols:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
component: otel-collector
release: default
annotations:
checksum/config: 0a71c96ab49070efbab9792ac6bd2a7fd6c79456ffbd8742ee2dda17103c2ae6
checksum/config: b167e2d8128b9a576780e47aedcab7dd65e44a3723428e7226f884c392673ec0
spec:
serviceAccountName: default-splunk-otel-collector
nodeSelector:
Expand Down
7 changes: 7 additions & 0 deletions rendered/manifests/otel-logs/configmap-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ data:
- system
override: true
timeout: 10s
transform/sck_fields:
log_statements:
- context: log
statements:
- set(resource.attributes["container_image"], Concat([resource.attributes["container.image.name"],
resource.attributes["container.image.tag"]], ":"))
receivers:
filelog:
encoding: utf-8
Expand Down Expand Up @@ -344,6 +350,7 @@ data:
- filter/logs
- batch
- resource
- transform/sck_fields
- resource/logs
- resourcedetection
receivers:
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/otel-logs/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: 615e6ecdac1dbd088376a5473f7b107f2e990ed3283b7911cecdbaf46f5059b6
checksum/config: 32b79b34331f22f51e732b7a346c92a5512f14faf4080b4d9127d221d6d539a1
kubectl.kubernetes.io/default-container: otel-collector
spec:
hostNetwork: true
Expand Down
6 changes: 6 additions & 0 deletions rendered/manifests/traces-only/configmap-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ data:
- system
override: true
timeout: 10s
transform/sck_fields:
log_statements:
- context: log
statements:
- set(resource.attributes["container_image"], Concat([resource.attributes["container.image.name"],
resource.attributes["container.image.tag"]], ":"))
receivers:
jaeger:
protocols:
Expand Down
2 changes: 1 addition & 1 deletion rendered/manifests/traces-only/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
app: splunk-otel-collector
release: default
annotations:
checksum/config: f2cfc1fa5ccc8fe78d3a9cab38b1004a993cd130974dd47b9e49ad6b8bd4b168
checksum/config: 7cb6cef9a2ec7925bb3349f625142d75274871945bf8bb1280490efadd143d49
kubectl.kubernetes.io/default-container: otel-collector
spec:
hostNetwork: true
Expand Down

0 comments on commit e9f1403

Please sign in to comment.