Fix Name field in template processor (#7258)

This commit is contained in:
Daniel Nelson
2020-04-13 10:57:48 -07:00
committed by GitHub
parent cc6c77f301
commit 3dab845040
2 changed files with 41 additions and 3 deletions

View File

@@ -1,16 +1,17 @@
package template
import (
"github.com/influxdata/telegraf"
"time"
"github.com/influxdata/telegraf"
)
type TemplateMetric struct {
metric telegraf.Metric
}
func (m *TemplateMetric) Measurement() string {
return m.Measurement()
func (m *TemplateMetric) Name() string {
return m.metric.Name()
}
func (m *TemplateMetric) Tag(key string) string {