Skip to content

Commit

Permalink
I-23 -- Remove namespace field from extends.
Browse files Browse the repository at this point in the history
  • Loading branch information
furiousassault committed Nov 22, 2021
1 parent 9b3c541 commit 738e0c3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ It would be successfuly parsed and the resulting JSON string (linted for readme)
"kubernetes.node_hostname":"localhost",
"kubernetes.pod_name":"pod",
"logstash_prefix":"k8s-unknown",
"namespace":"namespace",
"purpose":"staging",
"remote_addr":"10.154.18.198",
"remote_user":"",
Expand Down Expand Up @@ -313,7 +312,6 @@ Environment variables are taken at random. Resulting output entry map would look
"kubernetes.node_hostname": "localhost",
"kubernetes.pod_name": "deis-router-77745f5559-f424j",
"logstash_prefix": "k8s-unknown",
"namespace": "deis",
"purpose": "staging",
"type": "containers"
},
Expand Down
1 change: 0 additions & 1 deletion common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const (
LabelPurpose = "purpose"
LabelContainerID = "docker.container_id"
LabelLogstashPrefix = "logstash_prefix"
LabelLogstashNamespace = "namespace"
LabelLogType = "type"
LabelTime = "time"
)
Expand Down
1 change: 0 additions & 1 deletion dispatcher/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ func (d *Dispatcher) finalize() {
func (d *Dispatcher) containerExtends(c *containers.Container) (extends common.EntryMap) {
extends = make(common.EntryMap)
extends[common.LabelContainerID] = c.ID
extends[common.LabelLogstashNamespace] = c.GetPodNamespace()
extends[common.KubernetesPodName] = c.GetPodName()
extends[common.KubernetesNamespaceName] = c.GetPodNamespace()
extends[common.KubernetesContainerName] = c.GetName()
Expand Down
1 change: 0 additions & 1 deletion dispatcher/workers/workers_fabric.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func (f *FollowersFabric) NewFollowerJournald(output chan<- string, config confi
common.LabelPurpose: f.config.K8SExtends.Purpose,
common.LabelLogstashPrefix: f.config.K8SExtends.LogstashPrefix,
common.KubernetesNodeHostname: f.config.K8SExtends.NodeHostname,
common.LabelLogstashNamespace: common.NamespaceJournald,
common.KubernetesNamespaceName: common.NamespaceJournald,
},
f.storage,
Expand Down

0 comments on commit 738e0c3

Please sign in to comment.