Use lifo order in metric buffer (#5287)

This commit is contained in:
Daniel Nelson
2019-01-15 11:48:52 -08:00
committed by GitHub
parent 193aba8673
commit da80276802
4 changed files with 365 additions and 77 deletions

View File

@@ -19,6 +19,10 @@ type metricDiff struct {
}
func newMetricDiff(metric telegraf.Metric) *metricDiff {
if metric == nil {
return nil
}
m := &metricDiff{}
m.Measurement = metric.Name()