Skip to content

Commit

Permalink
Revert "Make config simpler"
Browse files Browse the repository at this point in the history
This reverts commit 99edce3.
  • Loading branch information
ffilippopoulos committed Jun 25, 2024
1 parent 99edce3 commit e316f4e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions vector/agent/namespaced/resources/pods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ 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 @@ -60,6 +67,6 @@ sinks:
kubernetes_cluster: "${KUBERNETES_CLUSTER}"
app: '{{ app }}'
app_kubernetes_io_name: '{{ app }}'
kubernetes_namespace: '{{ kubernetes.pod_namespace }}'
kubernetes_pod_name: '{{ kubernetes.pod_name }}'
kubernetes_container: '{{ kubernetes.container_name }}'
kubernetes_namespace: '{{ namespace }}'
kubernetes_pod_name: '{{ pod_name }}'
kubernetes_container: '{{ container }}'

0 comments on commit e316f4e

Please sign in to comment.