diff --git a/main.go b/main.go index efc2ae1..f2f42d1 100644 --- a/main.go +++ b/main.go @@ -106,7 +106,10 @@ func CreateInfluxMetrics(samples model.Vector, metricPrefix string) string { metric += fmt.Sprintf(" value=%s %d\n", value, timestamp) - metrics += metric + segments := strings.Split(metric, " ") + if len(segments) == 3 { + metrics += metric + } } return metrics