Before you start, you need to install the prerequisites.
- Redis:
Version >= 5.0
for data reading
Image can be found at package page on GitHub.
docker run --rm \
-e APP_URL=http://127.0.0.1:4000 \
-e REDIS_URL=redis://192.168.0.200:6379/0 \
-p 4000:4000 \
ghcr.io/petaki/satellite
Downloads can be found at releases page on GitHub.
- GO:
Version >= 1.21
- Node.js:
Version >= 18.0
- Yarn or NPM
git clone git@github.com:petaki/satellite.git
cd satellite
yarn install
yarn prod
go build
cp .env.example .env
The configruation is stored in the .env
file.
APP_ADDR=:4000
APP_URL=http://127.0.0.1:4000
REDIS_URL=redis://127.0.0.1:6379/0
HEARTBEAT_ENABLED=false
HEARTBEAT_WAIT=5
0
- Disabled
HEARTBEAT_SLEEP=300
HEARTBEAT_WEBHOOK_METHOD=POST
HEARTBEAT_WEBHOOK_URL=http://127.0.0.1:4000/heartbeat
HEARTBEAT_WEBHOOK_HEADER='{"Authorization": "Bearer TOKEN", "Accept": "application/json"}'
%p
- Probe%t
- Start timestamp of current heartbeat period inRFC3339
format%x
- Start timestamp of current heartbeat period inUnix
format%l
- Satellite link (relative)
HEARTBEAT_WEBHOOK_BODY='{"probe": "%p", "timestamp_rfc3339": "%t", "timestamp_unix": %x, "link": "%l"}'
Run the app using the following command:
./satellite web serve
You can gather the necessary data with the Probe.
- @dyipon for development ideas, bug reports and testing
If you are facing a problem with this package or found any bug, please open an issue on GitHub.
The MIT License (MIT). Please see License File for more information.