@nexload-sdk/healthcheck-node
v2.0.0
Published
Node.js runtime, process, cgroup, TCP, and DNS adapters for @nexload-sdk/healthcheck.
Maintainers
Readme
@nexload-sdk/healthcheck-node
Node.js runtime adapter and operational checks for @nexload-sdk/healthcheck.
import { createHealthManager, memoryCheck, shutdownCheck } from "@nexload-sdk/healthcheck";
import { containerResourceCheck, nodeRuntimeAdapter } from "@nexload-sdk/healthcheck-node";
export const health = createHealthManager({
service: { name: "api" },
runtime: nodeRuntimeAdapter(),
checks: [
shutdownCheck(),
memoryCheck(),
containerResourceCheck({ scopes: ["diagnostics"] })
]
});Container resource detection reads cgroup v2 and v1 files before falling back to Node and OS values. It preserves fractional CPU quotas such as 0.5.
