Add stackdriver input plugin (#5406)

This commit is contained in:
Daniel Nelson
2019-02-20 13:23:59 -08:00
committed by GitHub
parent 463df273ee
commit 843d842d02
7 changed files with 2091 additions and 0 deletions

View File

@@ -103,3 +103,11 @@ func MustMetric(
}
return m
}
func FromTestMetric(met *Metric) telegraf.Metric {
m, err := metric.New(met.Measurement, met.Tags, met.Fields, met.Time)
if err != nil {
panic("MustMetric")
}
return m
}