Skip to content

Commit

Permalink
Fix SSL config generation for metrics builder (#6588)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjsamuel authored and exekias committed Mar 19, 2018
1 parent dcab193 commit 92ba7c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions metricbeat/autodiscover/builder/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,13 @@ func (m *metricAnnotations) CreateConfig(event bus.Event) []*common.Config {
"timeout": tout,
"period": ival,
"enabled": true,
"ssl": sslConf,
}

if ns != "" {
moduleConfig["namespace"] = ns
}

for k, v := range sslConf {
moduleConfig.Put(k, v)
}
logp.Debug("metrics.builder", "generated config: %v", moduleConfig.String())

// Create config object
Expand Down

0 comments on commit 92ba7c0

Please sign in to comment.