Add HttpReceiver as counterpart to the HttpSink (#49)

This commit is contained in:
Thomas Gruber
2022-03-05 17:30:55 +01:00
committed by GitHub
parent f2486abeab
commit c0e600269a
3 changed files with 142 additions and 0 deletions

23
receivers/httpReceiver.md Normal file
View 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>`