From 61e9191d4d46f1293f8a2bca807f4242c3473ce0 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Thu, 19 Oct 2023 09:22:09 +0200 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 40ac0ae..e9b5be7 100644 --- a/README.md +++ b/README.md @@ -141,3 +141,12 @@ curl -H "Authorization: Bearer $JWT" -D - "http://localhost:8080/api/query" -d " # ... ``` +For debugging there is a debug endpoint to dump the current content to stdout: +```sh +JWT="eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlcyI6WyJST0xFX0FETUlOIiwiUk9MRV9BTkFMWVNUIiwiUk9MRV9VU0VSIl19.d-3_3FZTsadPjDEdsWrrQ7nS0edMAR4zjl-eK7rJU3HziNBfI9PDHDIpJVHTNN5E5SlLGLFXctWyKAkwhXL-Dw" + +# If the collector and store and nats-server have been running for at least 60 seconds on the same host, you may run: +curl -H "Authorization: Bearer $JWT" -D - "http://localhost:8080/api/debug" + +# ... +```