Skip to content

Serve metrics at /_metrics on the monitor port - #47

Merged
mumtaz6 merged 1 commit into
masterfrom
metrics
Oct 4, 2026
Merged

mumtaz6 merged 1 commit into
masterfrom
metrics

Conversation

@mumtaz6

@mumtaz6 mumtaz6 commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #46 (health checks). Ported from unitdb_internal (its commit e39cc44).

/_metrics on the monitor port, in the Prometheus text format:

  • build info and uptime;
  • what /varz computes: connections, subscriptions, messages and bytes, event durations;
  • the health checks;
  • in a cluster, this node's place in it: members, ring version, leader age, replication queues, and peers without TLS.

Labels stay bounded: never a client or a topic.

Tests: metrics_test.go, and the e2e health test reads /_metrics.

🤖 Generated with Claude Code

In the Prometheus text format: build info and uptime, what /varz computes
(connections, subscriptions, messages and bytes, event durations), the
health checks, and in a cluster this node's place in it (members, ring
version, leader age, replication queues, peers without TLS). Labels stay
bounded: never a client or a topic.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@mumtaz6
mumtaz6 changed the base branch from health-checks to master October 4, 2026 16:04
@mumtaz6
mumtaz6 merged commit 4b1759a into master Oct 4, 2026
6 checks passed
@mumtaz6
mumtaz6 deleted the metrics branch October 6, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant