@openstatus/health-unkey
v0.1.4
Published
Unkey liveness probe for @openstatus/health
Readme
@openstatus/health-unkey
Reachability probe for Unkey for
@openstatus/health. Checks
GET {baseUrl}/v2/liveness, unauthenticated — liveness is public.
deno add jsr:@openstatus/health jsr:@openstatus/health-unkey
npm install @openstatus/health @openstatus/health-unkeyimport { createHealthHandler } from "@openstatus/health";
import { unkeyProbe } from "@openstatus/health-unkey";
Deno.serve(
createHealthHandler({ probes: [unkeyProbe()] }),
);unkeyProbe({
// optional: point at a self-hosted Unkey. Default https://api.unkey.com
baseUrl: "https://api.unkey.com",
// optional overrides from the Probe contract
name: "auth",
critical: true,
timeoutMs: 3000,
skip: () => !env.UNKEY_ENABLED,
});Non-critical by default, so a dead Unkey degrades the report instead of
taking the whole service down. Override critical: true if Unkey is in the
request path.
About openstatus
openstatus is the open-source uptime monitoring
and status page platform. This package is part of
@openstatus/health, the /health
endpoints behind openstatus's own services, extracted so any JavaScript server
can expose one. Point an
openstatus monitor
at the endpoint and assert on status in the body to be alerted on
degraded before it becomes unhealthy.
Source: github.com/openstatusHQ/health. Issues and PRs welcome.
