bx-monitor 0.1.0
Released .
First version.
- Registers with a collector on runtime start, sends a heartbeat every interval and deregisters on shutdown, over wire protocol v1 (
docs/PROTOCOL.md). - Heartbeats carry JVM metrics, datasource / disk / custom health checks, per-route request counts and percentiles, and redacted errors.
monitorCaptureException()andmonitorRegisterCheck().- Redaction by key, query string,
key=valuein text, Bearer tokens and custom patterns;errorDetailoffull,redactedornone. - Exponential backoff when the collector is unreachable; handling for
409,401,426and413. - BoxExpress (boxlang-express 0.2.31+): requests are recorded from
onExpressRequestEndunder their route pattern with BoxExpress's own duration, and errors captured fromonExpressError. - A JVM shutdown hook sends the goodbye when a process is stopped without unloading its modules.
- A
4xxthe protocol doesn't name discards that heartbeat's errors and request stats; they are no longer resent forever. - What a heartbeat took from the buffers is put back when building it fails.
- The collector is logged without credentials or a query string, and plain
http://to another machine logs a warning. modules[].namein register is the name a module is installed under (bx-mysql), not its mapping.- The wait between heartbeats allows for the time the last one took.
- A datasource the checks cannot see says so in its detail.
- Inert when disabled, or when
collectorUrlis empty, unresolved or not an http(s) URL.