mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-27 07:39:05 +01:00
Add some basic debugging documentation
This commit is contained in:
parent
9530c489b5
commit
d1a960e6e1
@ -21,3 +21,14 @@ The `http` receiver can be used receive metrics through HTTP POST requests.
|
|||||||
- `path`: URL path for the write endpoint
|
- `path`: URL path for the write endpoint
|
||||||
|
|
||||||
The HTTP endpoint listens to `http://<address>:<port>/<path>`
|
The HTTP endpoint listens to `http://<address>:<port>/<path>`
|
||||||
|
|
||||||
|
### Debugging
|
||||||
|
|
||||||
|
- Install [curl](https://curl.se/)
|
||||||
|
- Use curl to send message to `http` receiver
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl http://localhost:8080/write --data \
|
||||||
|
"myMetric,hostname=myHost,type=hwthread,type-id=0,unit=Hz value=400000i 1694777161164284635
|
||||||
|
myMetric,hostname=myHost,type=hwthread,type-id=1,unit=Hz value=400001i 1694777161164284635"
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user