mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-08-14 14:52:58 +02:00
Change storage format
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package sinks
|
||||
|
||||
import (
|
||||
"time"
|
||||
// "time"
|
||||
lp "github.com/influxdata/line-protocol"
|
||||
)
|
||||
|
||||
type SinkConfig struct {
|
||||
@@ -25,6 +26,6 @@ type Sink struct {
|
||||
|
||||
type SinkFuncs interface {
|
||||
Init(config SinkConfig) error
|
||||
Write(measurement string, tags map[string]string, fields map[string]interface{}, t time.Time) error
|
||||
Write(point lp.MutableMetric) error
|
||||
Close()
|
||||
}
|
||||
|
Reference in New Issue
Block a user