-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove location from env vars * preparing for recurring execution * rewrote and prepared for continuous execution * added sample env * fixing execution logs * fixed log output * update README with example startup commands * make formatter happy * fixed typo - thanks coderabbit
- Loading branch information
Showing
5 changed files
with
98 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
UHTTP_LM_CLIENT_ID= | ||
UHTTP_LM_RPC_PROVIDER=https://gnosis.rpc-provider.prod.hoprnet.link | ||
UHTTP_LM_ZERO_HOP=true | ||
UHTTP_LM_DISCOVERY_PLATFORM=https://discovery.rpch.tech | ||
UHTTP_LM_INTERVAL_MS=60000 | ||
UHTTP_LM_OFFSET_MS=11111 | ||
UHTTP_LM_PUSH_GATEWAY= | ||
DEBUG=latency-monitor:* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
# u(nlinked)HTTP latency monitor | ||
|
||
Measure roundtrip latency through uHTTP network. | ||
|
||
## Development setup | ||
|
||
- Copy `.env.sample` to `.env` and adjust values as needed. | ||
- Build application with `yarn build` | ||
- Start application with `export $(cat .env) && yarn start` | ||
|
||
## Docker setup | ||
|
||
- Build container with `docker build -t uhttp-latency-monitor .` | ||
- Run container with `docker run --env-file .env --platform linux/amd64 uhttp-latency-monitor` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters