lib/fluent/plugin/out_kubernetes.rb in fluent-plugin-kubernetes-0.2.2 vs lib/fluent/plugin/out_kubernetes.rb in fluent-plugin-kubernetes-0.2.3
- old
+ new
@@ -41,10 +41,10 @@
record['container_id'] = id
container = Docker::Container.get(id)
if container
container_name = container.json['Name']
if container_name
- record["container_name"] = container_name
+ record["container_name"] = container_name[1..-1]
regex = Regexp.new(@kubernetes_pod_regex)
match = container_name.match(regex)
if match
pod_container_name, pod_name, pod_namespace =
match.captures