mirror of
https://github.com/tiennm99/miti-loki.git
synced 2026-10-11 03:13:40 +00:00
docs: point usage at the tiennm99.workers.dev URL
This commit is contained in:
1 parent
0e989df299
commit
0a98b51392
1 file changed
+4
-4
@@ -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/?<label>=<value>&...
|
||||
POST https://miti-loki.tiennm99.workers.dev/?<label>=<value>&...
|
||||
Content-Type: application/json
|
||||
{"message": "<your log>"}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user