API Monitor DB is a Go + Postgres dashboard for monitoring HTTP endpoints. Try here: https://monitor.architdewan.dev/ You can create checks, run them manually, let the scheduler run them automatically, and view recent health and latency in a simple dashboard.
- Create, edit, and delete API checks
- Configure method, expected status range, interval, timeout, and enabled/disabled state
- Run checks manually from the UI
- Run checks automatically on a schedule
- Store run history in Postgres
- Show latest status, latency, failure streak, and current incident start time
- View per-check history and charts
- Go
- Postgres
- Docker Compose for the database
- Dockerfile for the app container
Start the full stack:
docker compose up -d --buildOr, for local development, start only Postgres:
docker compose -f compose.yaml -f compose.local.yaml up -d dbThen start the app on your machine:
go run ./cmd/serverOpen:
http://localhost:8080
Set DATABASE_URL if you want to use a different Postgres instance.
If you do not set it, the app uses:
postgres://postgres:postgres@localhost:5432/apimonitordb?sslmode=disableRight now:
- Postgres is dockerized
- The Go app is dockerized
- The Go app runs locally with
go run ./cmd/server - The scheduler runs in-process with the web app
This means the full app can run locally or on a VM with Docker Compose.
On the server, Docker must be installed and running:
sudo systemctl enable --now docker
sudo systemctl status docker --no-pagerThen deploy from the project directory:
docker compose up -d --build
docker compose ps
curl -i http://localhost/healthz
curl -i https://monitor.architdewan.dev/healthzIf the app is not healthy, inspect logs:
docker compose logs --tail=100 app
docker compose logs --tail=100 caddy
docker compose logs --tail=100 dbThe monitor.architdewan.dev hostname is served by Caddy, which listens on
ports 80 and 443 and proxies requests to the app on port 8080. The Oracle
VM firewall and Oracle subnet/security list must allow inbound 80 and 443.
GitHub Actions deploys master to the Oracle VM over SSH. Configure these repo
secrets before relying on automatic deploys:
ORACLE_HOST=192.18.159.62
ORACLE_USER=opc
ORACLE_SSH_KEY=<private SSH key contents>
ORACLE_APP_DIR=/home/opc/APIMonitorDB
The workflow runs tests, SSHes into the VM, resets the repo to origin/master,
rebuilds the app image, starts Docker Compose, and checks the public health URL.
cmd/server: app entrypointinternal/app: app startup and scheduler bootinternal/config: environment configinternal/httpserver: routes and template renderinginternal/monitor: monitoring logic and scheduler behaviorinternal/store: Postgres persistenceweb/templates: dashboard and form templates
check_runshistory currently keeps growing unless you clean it up manually- Alerts and user accounts are not built yet