Based off of Hyra's Atlassian Statuspage monitor
This is a very simple monitoring script that will monitor the latency of your API server. It simply makes a request to a HTTP or HTTPS path every 30 seconds and reports the latency to Instatus via their API. This is used in a metric graph.
There are a few prerequisites to run this project locally. You'll need:
- Node.js - this was built using Node.js v16.11
- All the dependencies in the package.json
Clone the repo to your system
To install the dependencies simply run npm install
.
You'll then need to set up your environment variables.
Once you've installed the latency monitor, you'll need to run it. To run it, we'd recommend using a process manager like pm2.
We store secrets in a .env
file stored in the root directory of the project - you can't see this file because it's in our .gitignore
.
Please see the format for this file below
API_KEY=
This project is licensed under MIT License