telegraf/plugins/serializers/influx/influx.go

13 lines
218 B
Go
Raw Normal View History

package influx
import (
"github.com/influxdata/telegraf"
)
type InfluxSerializer struct {
}
func (s *InfluxSerializer) Serialize(metric telegraf.Metric) ([]string, error) {
return []string{metric.String()}, nil
}