Fixed json serialization to make sure only value type supported by OpenTSDB are sent and made sure we send numbers un-quoted event though OpenTSDB API accepts them as this is not clean json.

This commit is contained in:
Eric
2016-09-20 14:26:08 -04:00
committed by Cameron Sparr
parent b702a9758b
commit 1f7a8fceef
2 changed files with 8 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ import (
type HttpMetric struct {
Metric string `json:"metric"`
Timestamp int64 `json:"timestamp"`
Value string `json:"value"`
Value interface{} `json:"value"`
Tags map[string]string `json:"tags"`
}