Skip to content

Commit

Permalink
Fix carbon2 serializer not falling through to field separate when car…
Browse files Browse the repository at this point in the history
…bon2_format field is unset
  • Loading branch information
pmalek committed Sep 30, 2020
1 parent c15d8e6 commit 805f81c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/serializers/carbon2/carbon2.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func (s *Serializer) createObject(metric telegraf.Metric) []byte {
switch metricsFormat {
// Field separate is the default when no format specified.
case Carbon2FormatFieldEmpty:
fallthrough
case Carbon2FormatFieldSeparate:
m.WriteString(serializeMetricFieldSeparate(
metric.Name(), fieldName,
Expand Down

0 comments on commit 805f81c

Please sign in to comment.