The API serves Prometheus metrics on a listener of its own
(UPTIME_API_METRICS_LISTEN, default :9090, "off" disables it), so the
public ingress never exposes them:
- requests by route and status, with durations except for long polls
and agent streams
- dispatched checks, stored and rejected results per region, how late
results arrive, live checkers and overdue checks per platform region
- notification and subscriber mail deliveries, incidents opened and
resolved
- runs, duration and last success of the background jobs
- platform totals (orgs, users, monitors by type, status pages,
subscribers, open incidents, pending notifications), read at most
every 15 seconds when scraped
- the Postgres and Redis connection pools, Go runtime and build info
The Helm chart exposes the port on the API service and can add a
ServiceMonitor for the Prometheus Operator.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Deleting an organization removed its check results and aggregates in the
same transaction as the request. With gigabytes of results that took
longer than the request may last, it was cut off and rolled back, so a
large organization could not be deleted at all.
The organization and everything with a foreign key on it now go in the
request; its check data is queued in org_purges. Every API instance
purges the queue a chunk at a time, each chunk in a transaction of its
own, right after a deletion and every minute. Raw results go first, so
the aggregates' refresh does not rebuild what was purged. A lease lets
another instance take over a purge whose instance stopped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3