Remove debug fields from spunkmetric serializer (#7455)

This commit is contained in:
Daniel Nelson
2020-05-04 16:21:32 -07:00
committed by GitHub
parent 145bad6194
commit 973aec42b3
3 changed files with 13 additions and 21 deletions

View File

@@ -179,12 +179,7 @@ func (s *serializer) createObject(metric telegraf.Metric) (metricGroup []byte, e
// The tags are common to all events in this timeseries
commonTags := CommonTags{}
commonObj := map[string]interface{}{}
commonObj["config:hecRouting"] = s.HecRouting
commonObj["config:multiMetric"] = s.SplunkmetricMultiMetric
commonTags.Fields = commonObj
commonTags.Fields = map[string]interface{}{}
// Break tags out into key(n)=value(t) pairs
for n, t := range metric.Tags() {