Skip to content

Commit

Permalink
Use Debug logging when encountering string metric in telegraf receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed May 4, 2021
1 parent 763d36b commit 26adb99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/telegrafreceiver/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (mc metricConverter) Convert(m telegraf.Metric) (pdata.Metrics, error) {
pm = newIntGauge(f.Key, int64(v), tim, mc.separateField)

default:
mc.logger.Warn(
mc.logger.Debug(
"Unsupported data type when handling telegraf.Gauge",
zap.String("type", fmt.Sprintf("%T", v)),
zap.String("key", f.Key),
Expand All @@ -108,7 +108,7 @@ func (mc metricConverter) Convert(m telegraf.Metric) (pdata.Metrics, error) {
pm = newIntGauge(f.Key, int64(v), tim, mc.separateField)

default:
mc.logger.Warn(
mc.logger.Debug(
"Unsupported data type when handling telegraf.Untyped",
zap.String("type", fmt.Sprintf("%T", v)),
zap.String("key", f.Key),
Expand Down

0 comments on commit 26adb99

Please sign in to comment.