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() and monitorRegisterCheck().
  • Redaction by key, query string, key=value in text, Bearer tokens and custom patterns; errorDetail of full, redacted or none.
  • Exponential backoff when the collector is unreachable; handling for 409, 401, 426 and 413.
  • BoxExpress (boxlang-express 0.2.31+): requests are recorded from onExpressRequestEnd under their route pattern with BoxExpress's own duration, and errors captured from onExpressError.
  • A JVM shutdown hook sends the goodbye when a process is stopped without unloading its modules.
  • A 4xx the 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[].name in 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 collectorUrl is empty, unresolved or not an http(s) URL.