Add new httpSink

This sink is compatible with the HTTP API of cc-metric-store.
Example config.json section:

```
"sink": {
    "type": "http",
    "host": "localhost",
    "port": "8080",
    "database": "api/write",
    "password": "<JWT>"
},
```

The password/JWT can be omitted.
This commit is contained in:
Lou Knauer
2021-10-12 13:44:38 +02:00
parent cdc1811576
commit 485223c590
4 changed files with 71 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ var Sinks = map[string]sinks.SinkFuncs{
"influxdb": &sinks.InfluxSink{},
"stdout": &sinks.StdoutSink{},
"nats": &sinks.NatsSink{},
"http": &sinks.HttpSink{},
}
var Receivers = map[string]receivers.ReceiverFuncs{