mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-12-22 07:06:17 +01:00
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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user