Changing AddValues to AddFields and temp disabling adding w time

Currently adding with time is broken, because InfluxDB does not support
using precision for timestamp truncation both with and without
timestamps. This will be re-enabled once we fix InfluxDB to use the
precision argument for truncation in all cases, and a "unit" argument
in the line-protocol for adding points with non-nanosecond stamps

Fixes #175
This commit is contained in:
Cameron Sparr
2015-09-16 16:50:43 -07:00
parent 46cd9ff9f5
commit 733ba07312
6 changed files with 61 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ type Plugin interface {
type Accumulator interface {
Add(measurement string, value interface{}, tags map[string]string)
AddValuesWithTime(measurement string,
AddFieldsWithTime(measurement string,
values map[string]interface{},
tags map[string]string,
timestamp time.Time)
@@ -63,7 +63,7 @@ The `Add` function takes 3 arguments:
about the metric. For instance, the `net` plugin adds a tag named `"interface"`
set to the name of the network interface, like `"eth0"`.
The `AddValuesWithTime` allows multiple values for a point to be passed. The values
The `AddFieldsWithTime` allows multiple values for a point to be passed. The values
used are the same type profile as **value** above. The **timestamp** argument
allows a point to be registered as having occurred at an arbitrary time.