Another status page based on UptimeRobot
- Node.js >= 10
- Uptime Robot API key
- Docker and docker-compose (optional)
wget https://raw.githubusercontent.com/giuem/uptimerobot-page/master/docker-compose.yml
docker-compose up -d
There are two ways to configure:
- config files in
config/*.yml
- environment variables (map: config/custom-environment-variables.yaml)
The file loading order is default.yml < ${NODE_ENV}.yml < environment variables. It's recommend to set secrets (e.g. API key) via environment variables and something complex (e.g. array and object) via files.
We use the parser to analyze groups name, monitors name and group index (optional) which included in your original monitor's name.
Default Parser is %group/%name
, there are 3 variables now:
- %group
- %name
- %index
You can change the backslash / to any separator you like, as long as it won't used in your group & monitor name (and index). To put index into your parser, you will able to sort your group in page manually. Easily write index for each group once (also for all if you like), and leave the blank of the index for other monitors in the same group.
There is example: Group Name/Index/Monitor Name
%group/%index/%name
For this format, you should write index in original name at Uptimerobots Control Panel for each group once:
GroupA/1/MonitorA
And leave the blank of the index for other monitors in the same group.
GroupA//MonitorB