diff --git a/build.zig.zon b/build.zig.zon index 192d973..62b8806 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -13,8 +13,8 @@ .hash = "websocket-0.1.10-ZPISdUowBQAXIl_X9VpZozIxBLVf_o5wYjOMMdobrXF5", }, .zio = .{ - .url = "https://tangled.org/zzstoatzz.io/zio/archive/71a66ba.tar.gz", - .hash = "zio-0.0.0-psl_OZ-KAgBZMwnLnfkB2CmqbDl1lPkel4pjyPYpIvTC", + .url = "https://tangled.org/zzstoatzz.io/zio/archive/63baa64.tar.gz", + .hash = "zio-0.0.0-psl_OUGWAgDxD37k0-Rdvc0HRPwSM_sIB4JEQ0lhxjlN", }, .pg = .{ .url = "https://tangled.org/zzstoatzz.io/pg.zig/archive/c5a5607.tar.gz", diff --git a/src/main.zig b/src/main.zig index 34bf5aa..4567b26 100644 --- a/src/main.zig +++ b/src/main.zig @@ -182,6 +182,12 @@ const MetricsServer = struct { \\# HELP zio_poller_registrations fds with an armed direction (collapse = erosion) \\# TYPE zio_poller_registrations gauge \\zio_poller_registrations {d} + \\# HELP zio_poller_arm_failures_total failed poller arms (fd closed, or the epoll watch limit). nonzero = new connections/reconnects cannot be armed + \\# TYPE zio_poller_arm_failures_total counter + \\zio_poller_arm_failures_total {d} + \\# HELP zio_poller_last_arm_errno errno of the most recent failed arm (9=EBADF, 28=ENOSPC, 12=ENOMEM) + \\# TYPE zio_poller_last_arm_errno gauge + \\zio_poller_last_arm_errno {d} \\# HELP zio_dns_spill DNS spill pool depth and workers \\# TYPE zio_dns_spill gauge \\zio_dns_spill{{kind="queued"}} {d} @@ -191,10 +197,11 @@ const MetricsServer = struct { \\# TYPE zio_fiber_starts gauge \\ , .{ - d.sched.switches, d.sched.live, d.sched.ready, - d.sched.parked, d.sched.futex_waiters, d.sched.timers, - d.sched.inject_pending, d.sched.free_list, d.poller_registrations, - d.dns_queued, d.dns_workers, d.dns_idle, + d.sched.switches, d.sched.live, d.sched.ready, + d.sched.parked, d.sched.futex_waiters, d.sched.timers, + d.sched.inject_pending, d.sched.free_list, d.poller_registrations, + d.sched.arm_failures, d.sched.last_arm_errno, d.dns_queued, + d.dns_workers, d.dns_idle, }) catch ""; var total = base_body.len; if (total + extra.len <= metrics_buf.len) {