Skip to content

Commit

Permalink
Merge pull request #67 from rlafferty/rlafferty/source-k8s-container-…
Browse files Browse the repository at this point in the history
…id-from-k8s-meta

Sources container_id tag from kubernetes meta location
  • Loading branch information
lukesteensen authored Jul 10, 2024
2 parents 6b202a9 + a0c9710 commit f29cf85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fluent/plugin/out_datadog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ def get_kubernetes_tags(record)
tags.push("container_name:" + kubernetes['container_name']) unless kubernetes['container_name'].nil?
tags.push("kube_namespace:" + kubernetes['namespace_name']) unless kubernetes['namespace_name'].nil?
tags.push("pod_name:" + kubernetes['pod_name']) unless kubernetes['pod_name'].nil?
tags.push("container_id:" + kubernetes['docker_id']) unless kubernetes['docker_id'].nil?
return tags.join(",")
end
nil
Expand Down

0 comments on commit f29cf85

Please sign in to comment.