checker-sdk-go/checker
Pierre-Olivier Mercier 6b96ee8c2f server: expose runtime metrics on /health for scheduler routing
Adds HealthResponse carrying inflight count, total requests, 1/5/15-min
EWMA load averages, uptime, and NumCPU so a scheduler can pick the least
busy worker. A background sampler updates the load averages every 5s,
stopped by a new idempotent Close method. Work endpoints (/collect,
/evaluate, /report) are wrapped with a trackWork middleware; /health
and /definition are excluded so polling traffic does not pollute the
signal.
2026-04-16 16:52:00 +07:00
..
options.go Initial commit 2026-04-08 00:53:15 +07:00
options_test.go tests: add coverage for options, types, and HTTP server 2026-04-10 16:35:50 +07:00
registry.go registry: reject checker registration with empty ID 2026-04-10 16:24:39 +07:00
registry_test.go tests: add coverage for options, types, and HTTP server 2026-04-10 16:35:50 +07:00
server.go server: expose runtime metrics on /health for scheduler routing 2026-04-16 16:52:00 +07:00
server_test.go server: expose runtime metrics on /health for scheduler routing 2026-04-16 16:52:00 +07:00
types.go server: expose runtime metrics on /health for scheduler routing 2026-04-16 16:52:00 +07:00
types_test.go Revert "checker: reorder Status with negatives for good, JSON as string" 2026-04-16 00:50:23 +07:00