diff --git a/README.md b/README.md index f3e8d4e..b7e76e0 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ A Cloudflare Worker that forwards logs to [My Grafana Cloud](https://miti99.graf ## Usage -POST a JSON body to `https://miti-loki.miti99.workers.dev/`. GET redirects to this repo. Any other method returns 405; missing/empty body returns 400. +POST a JSON body to `https://miti-loki.tiennm99.workers.dev/`. GET redirects to this repo. Any other method returns 405; missing/empty body returns 400. ### Single log entry ```bash -curl -X POST 'https://miti-loki.miti99.workers.dev/?app=demo&env=prod' \ +curl -X POST 'https://miti-loki.tiennm99.workers.dev/?app=demo&env=prod' \ -H 'Content-Type: application/json' \ -d '{"message": "Hello from miti-loki"}' ``` @@ -17,7 +17,7 @@ curl -X POST 'https://miti-loki.miti99.workers.dev/?app=demo&env=prod' \ ### Batch (array of entries) ```bash -curl -X POST 'https://miti-loki.miti99.workers.dev/?app=demo' \ +curl -X POST 'https://miti-loki.tiennm99.workers.dev/?app=demo' \ -H 'Content-Type: application/json' \ -d '[{"message":"first"},{"message":"second"}]' ``` @@ -86,7 +86,7 @@ Read this section first, do not probe. - **One POST per intended log batch.** Do not send a `"test"` payload to verify the endpoint — every successful POST writes to Loki, so probes pollute the log stream. - **Exact request:** ``` - POST https://miti-loki.miti99.workers.dev/?