Skip to content

Commit

Permalink
Make config simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
ffilippopoulos committed Jun 25, 2024
1 parent 1cc72df commit 99edce3
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions vector/agent/namespaced/resources/pods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,7 @@ transforms:
if is_nullish(.app) {
.app = .kubernetes.container_name
}
.namespace = .kubernetes.pod_namespace
.pod_name = .kubernetes.pod_name
.container = .kubernetes.container_name
.limit_key = string!(.kubernetes.pod_namespace) + "/" + string!(.app)
del(.file)
del(.kubernetes)
del(.source_type)
del(.stream)
throttle:
inputs:
Expand All @@ -67,6 +60,6 @@ sinks:
kubernetes_cluster: "${KUBERNETES_CLUSTER}"
app: '{{ app }}'
app_kubernetes_io_name: '{{ app }}'
kubernetes_namespace: '{{ namespace }}'
kubernetes_pod_name: '{{ pod_name }}'
kubernetes_container: '{{ container }}'
kubernetes_namespace: '{{ kubernetes.pod_namespace }}'
kubernetes_pod_name: '{{ kubernetes.pod_name }}'
kubernetes_container: '{{ kubernetes.container_name }}'

0 comments on commit 99edce3

Please sign in to comment.