mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-12-15 03:56:15 +01:00
Add HttpReceiver as counterpart to the HttpSink (#49)
This commit is contained in:
23
receivers/httpReceiver.md
Normal file
23
receivers/httpReceiver.md
Normal file
@@ -0,0 +1,23 @@
|
||||
## `http` receiver
|
||||
|
||||
The `http` receiver can be used receive metrics through HTTP POST requests.
|
||||
|
||||
### Configuration structure
|
||||
|
||||
```json
|
||||
{
|
||||
"<name>": {
|
||||
"type": "http",
|
||||
"address" : "",
|
||||
"port" : "8080",
|
||||
"path" : "/write"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `type`: makes the receiver a `http` receiver
|
||||
- `address`: Listen address
|
||||
- `port`: Listen port
|
||||
- `path`: URL path for the write endpoint
|
||||
|
||||
The HTTP endpoint listens to `http://<address>:<port>/<path>`
|
||||
Reference in New Issue
Block a user