Add non-blocking InfluxDB sink (#29)

* Add non-blocking InfluxDB sink

* Add configurable batch size
This commit is contained in:
Thomas Gruber
2022-02-07 16:51:46 +01:00
committed by GitHub
parent 6dd95d6fed
commit d1e66201a6
4 changed files with 160 additions and 6 deletions

View File

@@ -12,11 +12,12 @@ import (
// Map of all available sinks
var AvailableSinks = map[string]Sink{
"influxdb": new(InfluxSink),
"stdout": new(StdoutSink),
"nats": new(NatsSink),
"http": new(HttpSink),
"ganglia": new(GangliaSink),
"influxdb": new(InfluxSink),
"stdout": new(StdoutSink),
"nats": new(NatsSink),
"http": new(HttpSink),
"ganglia": new(GangliaSink),
"influxasync": new(InfluxAsyncSink),
}
// Metric collector manager data structure