mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-14 05:57:25 +01:00
24 lines
446 B
Markdown
24 lines
446 B
Markdown
|
## `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>`
|