docs: point usage at the tiennm99.workers.dev URL

This commit is contained in:
tiennm99 committed 2026-10-08 10:03:52 +07:00
1 parent 0e989df299
commit 0a98b51392
1 file changed
+4 -4
+4 -4
View File
@@ -4,12 +4,12 @@ A Cloudflare Worker that forwards logs to [My Grafana Cloud](https://miti99.graf
## Usage ## 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 ### Single log entry
```bash ```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' \ -H 'Content-Type: application/json' \
-d '{"message": "Hello from miti-loki"}' -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) ### Batch (array of entries)
```bash ```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' \ -H 'Content-Type: application/json' \
-d '[{"message":"first"},{"message":"second"}]' -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. - **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:** - **Exact request:**
``` ```
POST https://miti-loki.miti99.workers.dev/?<label>=<value>&... POST https://miti-loki.tiennm99.workers.dev/?<label>=<value>&...
Content-Type: application/json Content-Type: application/json
{"message": "<your log>"} {"message": "<your log>"}
``` ```