示例#1
0
func (s *InfluxSerializer) Serialize(metric telegraf.Metric) ([]string, error) {
	return []string{metric.String()}, nil
}
示例#2
0
func (f Filter) ShouldMetricPass(metric telegraf.Metric) bool {
	if f.ShouldPass(metric.Name()) && f.ShouldTagsPass(metric.Tags()) {
		return true
	}
	return false
}