From d1a960e6e1ff70230625ce5f25da9b57fa8dee35 Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:03:18 +0200 Subject: [PATCH] Add some basic debugging documentation --- receivers/httpReceiver.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/receivers/httpReceiver.md b/receivers/httpReceiver.md index ed1e1bf..873cf6d 100644 --- a/receivers/httpReceiver.md +++ b/receivers/httpReceiver.md @@ -21,3 +21,14 @@ The `http` receiver can be used receive metrics through HTTP POST requests. - `path`: URL path for the write endpoint The HTTP endpoint listens to `http://
:/` + +### 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" + ```