Mirexa

Wiki Reference

Metrics

Every Prometheus metric a Mirexa node and the Mirexa dashboard export, with type, labels, meaning and when each is registered.

A Mirexa node exports its measurements in the Prometheus text format on an HTTP endpoint, /metrics. This page lists every metric family a node can export — its type, labels, meaning, and the conditions under which it is registered at all — followed by the separate set the web dashboard exports about its own connection to a node. It is the reference to write alert rules and dashboard panels against; for what to alert on and how, see Monitoring and alerting.

Where metrics are served

mirexa-server starts one observability HTTP server that answers three paths: /metrics, /health (liveness) and /ready (readiness).[1]

Config key Default Meaning
observability.addr :9090 Listen address. Note the default binds every interface, not loopback.
observability.read_timeout 5s Bound on reading one request.
observability.write_timeout 10s Bound on writing one response.
observability.shutdown_timeout 15s Graceful shutdown bound.

The exposition is the classic Prometheus text format (EnableOpenMetrics is off). A failure to bind the observability port is logged at ERROR and does not stop the node. See Configuration reference for the whole observability: section.

The dashboard (cmd/dashboard) has its own, separate metrics listener on dashboard.metrics_addr (default 127.0.0.1:9101); see Dashboard metrics below.

The catalog

The authoritative list of names is /docs/metrics/catalog.txt: one line per family, tab-separated name, labels (- for none) and the help string. It is generated, not written: TestCatalog_IsCurrent builds a Metrics registry with the process collector on, calls every Register* method with a stub reader, describes every family whose name starts with mirexa_ or process_, sorts them, and compares the result byte for byte with the committed file.[2] A renamed, added or re-described family therefore fails the test until the file is regenerated:

bash
MIREXA_UPDATE_CATALOG=1 go test ./internal/observability -run TestCatalog_IsCurrent

A second test, TestCatalog_CoversEveryRegisterMethod, counts the Register* methods on Metrics by reflection and fails if the generator does not call all of them, so a new late-registered family cannot stay out of the catalog. The catalog also lists families that only a clustered node registers. The monitoring repository's checks read this file (via MIREXA_REPO) so that a dashboard panel or alert naming a metric that no longer exists fails a check rather than going silently empty.

What the catalog does not list: the Go runtime's go_* families. A production node registers the Go collector too (DefaultMetricsConfig enables both the Go and the process collector), but the set of go_* names follows the Go toolchain, not this repository.

Reading these metrics

A few properties hold across the whole set and are worth knowing before writing a query.

  • All names are fixed. Every node family is mirexa_<name>. MetricsConfig has a Subsystem field that would insert a second prefix (mirexa_<subsystem>_<name>, TestMetrics_Subsystem), but mirexa-server always builds the registry with DefaultMetricsConfig(), which leaves it empty, and no config key sets it.
  • Rates are never exported. Every counter is a cumulative total and every gauge a level; a rate is the consumer's arithmetic (rate(), increase()) over two samples. Replication lag for the control plane is likewise a subtraction across nodes, because no node can see another's progress (see Raft).
  • Many gauges are read at scrape time. Families registered by a Register* method are GaugeFunc/CounterFunc collectors (or a custom collector) that read the owning object's own state when Prometheus scrapes, rather than a second tally kept beside it. They cannot drift from the thing they describe.
  • Unknown is NaN, not zero. Where a node cannot answer — it cannot read its own control-plane state, it cannot tell what the balancer would do, it cannot read its certificate — the gauge reads NaN. Zero would read as "all clear" at exactly the moment nobody knows. The families that do this are marked below.
  • A labelled family is absent until its first event. A *Vec with no label combination observed yet emits no series at all, so mirexa_ingestion_shed_batches_total does not exist on a node that has never shed. Write alerts with absent() or or vector(0) where that matters (TestMetrics_QueryFamiliesAppearInGather pins the query families' appearance after one query).
  • stream_id is an unbounded label. The ingestion, restatement, derived-stream and per-stream data-health families carry one series per stream. A node with many thousands of streams wants recording rules rather than raw scrapes of those families.
  • Registered only where they can move. Families that could only ever read zero on a given node — the Raft gauges on a node with consensus off, the query-cache counters with the cache disabled — are not registered there at all, rather than exported flat.

The Registered column below uses these conditions:

Registered Condition
always Every mirexa-server process.
query cache query_cache.enabled: true (default false).
decoded chunk cache storage.decoded_chunk_cache_bytes > 0 (default 256 MiB, so registered by default).
clustered cluster.enabled: true.
clustered + control cluster.enabled and control.enabled — the node runs the control-plane cluster service and its leader-local loops.
replica supervisor clustered + control and cluster.replication_addr set — the node takes part in replication.
replication listener cluster.enabled and cluster.replication_addr set.

"Always" means always registered; a family can still read zero forever on a node where its event cannot happen (for example mirexa_redirects_total on a single node).

Ingestion

Name Type Labels Registered Meaning
mirexa_ingestion_candles_total counter stream_id, partition_id always Candles accepted by the live write path. A batch written onto stored history (a restatement) counts here too. Bulk-history (FlagHistory) batches are not counted: that route returns before the counter.
mirexa_ingestion_ticks_total counter stream_id, partition_id always Ticks accepted.
mirexa_ingestion_batch_size histogram partition_id always Records per accepted batch, buckets 1 to 2048 (powers of two). Observed for candle and tick batches, although its help text says "candles".
mirexa_ingestion_latency_seconds histogram partition_id always Time from the dispatcher receiving a batch to the write returning — for an acknowledged batch this includes the WAL durability wait. Buckets 100 µs to ~0.82 s (×2).
mirexa_ingestion_errors_total counter error_type, partition_id always Failed ingests. error_type is get_writer (the stream's writer could not be obtained) or append (the write failed). A shed batch is not an error; see the next family.
mirexa_ingestion_shed_batches_total counter kind, reason always Batches refused for lack of room and answered ERROR 0x0007 Overloaded. Nothing was stored, so the client is expected to retry. kind is candles or ticks; reason is wal_buffer (the WAL write buffer is full) or hot_cache (the stream's hot cache had no room after waiting for an eviction).
mirexa_ingestion_durable_batches_total counter kind always Batches that went through the WAL group-commit barrier — one per INGEST_ACK sent on the ordinary path.
mirexa_ingestion_durability_wait_seconds histogram kind always Time an acknowledged batch spent waiting on the group-commit fsync: the device cost a client pays for its acknowledgement. Buckets 100 µs to ~0.82 s.
mirexa_ingestion_restatements_total counter stream_id, partition_id, outcome always Candles written onto bars already in a chunk. outcome is patched (a patch chunk now serves the new value — rewritten, fsynced, shipped to every copy) or unchanged (identical to what is stored, nothing written). A steady patched rate with no correction feed upstream means a client is re-sending old data with different values.
mirexa_materialize_late_corrections_total counter stream_id (the derived stream) always Bars of a derived stream written or corrected after they were final, because late source data arrived. A steady rate says the stream's close grace is too short.
mirexa_wal_buffered_bytes gauge (scrape time) — always Encoded bytes sitting in the WAL write buffers, summed over the candle writer and every tick shard. This is the quantity wal.max_buffer_bytes bounds per writer, and the leading indicator of backpressure: it climbs to the watermark before anything is shed.

partition_id is the stream's partition number computed from the node's partition count (types.AssignPartition); on a single node it is still populated.

Two details read from the code and not separately pinned by a test: a batch that took the restatement route does not record a durable batch even when acknowledged, and the latency histogram covers the whole dispatcher call, not only the WAL commit its help text names.

Queries and caches

Name Type Labels Registered Meaning
mirexa_queries_total counter kind always Range queries handled, failed ones included. kind is candles or ticks.
mirexa_query_errors_total counter kind, error_type always Failed range queries. error_type is stream_not_found or internal.
mirexa_query_duration_seconds histogram kind always Query latency from dispatcher entry to the assembled result. Buckets 100 µs to ~0.82 s.
mirexa_query_result_size histogram kind always Records returned per successful query (failures are not observed, so an outage does not look like a run of empty ranges). Buckets 1 to 262,144 (×4).
mirexa_query_cache_hits_total counter (scrape time) — query cache Range queries answered from the query cache.
mirexa_query_cache_misses_total counter (scrape time) — query cache Range queries that missed it.
mirexa_decoded_chunk_cache_hits_total counter (scrape time) — decoded chunk cache Chunk reads served from already-decoded rows.
mirexa_decoded_chunk_cache_misses_total counter (scrape time) — decoded chunk cache Chunk reads that had to decode the chunk file.
mirexa_decoded_chunk_cache_bytes gauge (scrape time) — decoded chunk cache Bytes of decoded rows held now, bounded by storage.decoded_chunk_cache_bytes. The hit ratio is what says whether that budget is the right size.

Reads answered from a copy rather than the primary are counted separately, in mirexa_copy_reads_total under Routing.

Subscriptions

kind is candles or ticks throughout.

Name Type Labels Registered Meaning
mirexa_subscriptions_active gauge kind always Live subscriptions registered on the node.
mirexa_subscriptions_backfilling gauge kind always Subscriptions currently streaming stored history before switching to live delivery. A backfilling subscription is deliberately not draining its live queue and is exempt from slow-consumer eviction, so this tells "busy replaying history" apart from "behind".
mirexa_subscription_batches_total counter kind, result always One per published batch per subscriber: delivered (written to the socket), dropped (the subscriber's queue was full) or error (the write failed). The three sum to what was offered.
mirexa_subscription_evictions_total counter kind always Subscriptions ended for sustained slowness: network.subscription.drop_limit consecutive drops.
mirexa_subscription_backfills_total counter kind, result always Backfills by outcome: completed, canceled (the subscription went away mid-backfill) or failed.
mirexa_subscription_backfill_records_total counter kind always Records sent as backfill.
mirexa_subscription_offloads_total counter — always New subscribers a saturated node (network.subscription.offload_above) sent to an in-sync copy of their partition instead of serving them. Moves only in a cluster with copies.

See Subscribing to live data.

Network, handshakes and TLS

Name Type Labels Registered Meaning
mirexa_network_connections_active gauge listener always Open data-plane TCP connections. listener is always tcp.
mirexa_network_connections_total counter listener always Connections accepted.
mirexa_network_connections_rejected_total counter listener always Connections refused because network.max_connections was reached.
mirexa_network_frames_total counter frame_type always Wire frames parsed, by frame name (for example INGEST_CANDLE_BATCH, QUERY_STREAM; see Wire protocol).
mirexa_network_frames_invalid_total counter reason always Frames rejected while parsing the header: short_header, invalid_magic, unsupported_version, payload_too_large, invalid_header, short_payload.
mirexa_init_handshakes_total counter result always Handshake and session outcomes. success; failures timeout, expired, validity_exceeded, invalid_signature, undefined_permission, revoked, or invalid_frame (anything else); session_expired when an established session's token runs out; reauth_accepted / reauth_rejected for in-session token renewal.
mirexa_init_handshake_duration_seconds histogram — always INIT/INIT_ACK handshake duration, whatever the outcome.
mirexa_tls_handshakes_total counter listener, version always Successful TLS handshakes on the data listener. version is 1.0–1.3 or unknown.
mirexa_tls_handshake_errors_total counter listener always Failed TLS handshakes.
mirexa_tls_handshake_duration_seconds histogram listener always TLS handshake duration.
mirexa_tls_cert_reloads_total counter result always Certificate reload attempts on the data listener (for example on SIGHUP), success or error.
mirexa_errors_total counter component, error_type always Every ERROR frame the server sends. component is network (the only producer today); error_type is the error code name. Counted whether or not the client was still there to read it.

The TLS families describe the data-plane listener only; the control-plane gRPC listener and the inter-node replication listener are not counted here. See TLS and certificates and Authentication and tokens.

Routing and fencing

These exist on every node and move only in a cluster.

Name Type Labels Registered Meaning
mirexa_redirects_total counter frame_type always Requests answered with a REDIRECT because the stream's partition is served by another node. Counted after the frame is written, so it means "redirects a client received".
mirexa_copy_reads_total counter frame_type always Reads this node answered from its in-sync copy of a partition instead of redirecting to the primary. A QUERY_MULTI counts each sub-query. Clients spread reads over copies by default, and the primary's own query counters never see these. See Reads from copies.
mirexa_fenced_writes_total counter frame_type, reason always Writes refused because the epoch the sender believed did not match this node's. superseded: the client's view is older (expected in bursts after a partition moves; answered with a redirect). behind: the client knows a newer placement than this node has applied. unplaced: this node has no directory entry for the partition at all. The last two mean this node is lagging or blind.

See Partitions and routing.

Storage and data health

Read at scrape time from the node's stream and gap indexes by one custom collector, so every family here is a gauge.[3]

The scope label separates what a node holds (held: everything in its stream indexes — partitions it is primary of, copies, and anything not yet moved aside) from what it serves (served: streams this node answers writes for). A cluster total sums served over nodes, so each copy is counted once. On a single node every stream is served.

Name Type Labels Registered Meaning
mirexa_storage_streams gauge scope always Streams in the stream indexes.
mirexa_storage_records gauge scope always Candles in flushed base chunks (corrections are not counted twice; data still in the hot cache is not counted).
mirexa_storage_bytes gauge scope always Compressed on-disk size of candle chunks, patch chunks included. Excludes the WAL.
mirexa_storage_uncompressed_bytes gauge scope always records × 48 — what the candles would occupy uncompressed. Divide by mirexa_storage_bytes for the compression ratio.
mirexa_stream_interval_seconds gauge stream_id always A served stream's bar interval.
mirexa_stream_newest_data_timestamp_seconds gauge stream_id always Timestamp (Unix seconds) of the newest bar the stream holds, flushed or not. Absent for a stream holding nothing.
mirexa_stream_trading_seconds_since_data gauge stream_id always Trading time, by the stream's calendar, from the newest bar's close to now. A market closure adds nothing, so a stream idle over a weekend reads near zero at Monday's open. This is the staleness to alert on. Counted back at most 30 days; absent for a stream holding nothing.
mirexa_stream_open_gaps gauge stream_id always Gaps still OPEN — missing data that can be filled. Market closures and filled gaps are not counted.
mirexa_stream_missing_seconds gauge stream_id always Time the OPEN gaps cover.

Per-stream series exist only for candle streams this node serves: a copy adds no series, and a stream's series move with its partition. Tick streams have no bar interval and get no per-stream series (they are still counted in mirexa_storage_streams). A stream whose index cannot be read counts as held without a size, so one bad index does not blind the gauges to the rest. If a calendar cannot be built, all elapsed time counts as trading time — the direction that raises an alert rather than hiding one.

Each scrape reads every known stream's statistics (an index walk, no chunk opened). On a node with very many streams this is per-scrape work; its cost is unmeasured.

Control plane (consensus, Raft)

The cluster's control plane runs on Raft; see The control plane. None of these carries a shard or group label: there is one consensus group (TestRaftFamilies_CarryNoGroupLabel).

Name Type Labels Registered Meaning
mirexa_raft_has_leader gauge (scrape time) — clustered 1 when this node knows a leader, 0 when not. 0 means the group cannot commit — the difference between a slow cluster and a stopped one.
mirexa_raft_is_leader gauge (scrape time) — clustered 1 when this node is the leader. Summed over all nodes it must never exceed 1.
mirexa_raft_term gauge (scrape time) — clustered The term this node believes the group is in. A rising term with has_leader flapping is an election storm.
mirexa_raft_apply_total counter (scrape time) — clustered Log entries this node's state machine applied since the process started, including ones it declined (a declined entry still occupies an index).
mirexa_raft_applied_index gauge (scrape time) — clustered Highest log index applied here. commit_index − applied_index is the apply backlog.
mirexa_raft_commit_index gauge (scrape time) — clustered Highest index known committed.
mirexa_raft_log_first_index gauge (scrape time) — clustered Oldest entry still held; advances when a snapshot lets earlier entries be compacted.
mirexa_raft_log_last_index gauge (scrape time) — clustered Newest entry held.
mirexa_raft_leader_changes_total counter — always (moves only when clustered) Leadership transitions this node observed, including transitions to no leader. Its help text records a single-node bootstrap emitting exactly one, measured 2026-09-22.
mirexa_raft_commit_latency_seconds histogram — always (moves only when clustered) Round trip of a proposal that reached consensus. Failed proposals are excluded: their duration is the caller's deadline, not the cluster's latency. Buckets 100 µs to ~0.82 s. Absent from the scrape until the first proposal.
mirexa_cluster_replica_transitions_total counter from, to clustered Replica state changes (NONE, PRIMARY, SYNCING, IN_SYNC) the state machine applied. Every node applies the same log, so every node counts the same transitions; a restart replays its log and counts them again. At most 16 series.
mirexa_control_rpcs_total counter method, code always (moves only when control.enabled) Unary control-plane gRPC calls, by full method name and gRPC status code.

Replication lag is not exported because hashicorp/raft exposes no per-follower match index: compute it in the query as the leader's mirexa_raft_log_last_index (or commit_index) minus a follower's.

Cluster state

Read at scrape time from this node's applied copy of the replicated state, so every node reports the same cluster-wide numbers (they are not per-node). All are gauges and all are registered only on a clustered + control node.

Name Unknown reads Meaning
mirexa_cluster_partitions_unassigned 0 Partitions with no primary. Zero once placement has converged — and also when no partition count has been agreed. A value that stays non-zero means placement cannot converge.
mirexa_cluster_partitions_under_replicated NaN Partitions still served by their primary while a copy the directory names is on a fenced node. Nothing is unavailable; redundancy is.
mirexa_cluster_partitions_primary_down NaN Partitions nobody is serving (primary on a fenced node) that still have an in-sync copy; requests are refused with partition-unavailable until a failover.
mirexa_cluster_partitions_unavailable NaN Partitions nobody is serving with no caught-up copy left: data out of reach until the primary's node returns. Any non-zero reading is an incident.
mirexa_cluster_copies_missing NaN Copies the directory is short of cluster.replication_factor (a divergent copy counts as present). Zero at the default factor of 1.
mirexa_cluster_migrations_in_flight 0 Partition moves the directory currently intends, at any step. A value that does not fall is a move that cannot progress.
mirexa_cluster_migrations_seeding 0 Moves whose target is copying data (catching up, ready to cut, draining the source). Bounded by cluster.max_concurrent_migrations.
mirexa_cluster_migrations_unsatisfiable 0 Moves the directory has left behind (the partition lost its entry, or a third node became primary); they are abandoned.
mirexa_cluster_rebalance_moves_recommended NaN Moves the balancer would make, from the leader's latest plan (computed every cluster.rebalance_interval, never per scrape). Zero inside the threshold, and on a follower. NaN when no leader is known or the leader has not yet heard every online node's load. Non-zero with cluster.rebalance_auto off is a recommendation waiting for an operator.
mirexa_cluster_rebalance_bytes_recommended NaN Bytes those moves would transfer.

The three partition-health gauges come from one projection, as do the three migration gauges, so each trio is consistent within a scrape. See Moving partitions and rebalancing.

This node's role: lease, copies, reconciliation

Per-node numbers about what this node itself is doing.

Name Type Registered Meaning
mirexa_cluster_primary_lease_remaining_seconds gauge (scrape time) clustered + control Seconds left on this node's licence to serve as a primary. Zero means it refuses every partition it is primary of until the control plane acknowledges it again. A healthy node reads between a quarter and three quarters of the liveness timeout. See Failure detection, leases and failover.
mirexa_replica_copies gauge (scrape time) replica supervisor Partitions this node keeps a copy of (catch-ups running). Makes a zero lag readable: zero lag with copies is keeping up; with none it is keeping nothing.
mirexa_replica_worst_lag_seconds gauge (scrape time) replica supervisor How long ago the furthest-behind copy here was last level with its primary's durable watermark — the measure the in-sync set is kept by.
mirexa_replica_worst_lag_records gauge (scrape time) replica supervisor That copy's sequence distance behind its primary.
mirexa_reconcile_rotten_chunks gauge (scrape time) replica supervisor Chunks on this node known to fail verification and not yet repaired. The one to alert on: a chunk that stays here has no copy holding it whole.
mirexa_reconcile_scrub_bytes_total counter (scrape time) replica supervisor Bytes of chunk files the background scrub has re-read and verified (paced by cluster.scrub_bytes_per_second). A scrub that stops advancing finds nothing.
mirexa_reconcile_scrub_cycles_total counter (scrape time) replica supervisor Full scrub passes completed. Its help text says "partitions this node is primary of"; the scrub covers copies this node holds too.
mirexa_reconcile_repairs_total counter (scrape time) replica supervisor Chunks rebuilt from another node's copy after failing verification.
mirexa_reconcile_divergences_total counter (scrape time) replica supervisor Times a copy here held another history than its primary's and was moved aside to seed again.
mirexa_reconcile_retired_chunks_total counter (scrape time) replica supervisor Chunks a copy here dropped because its primary's retention had.
mirexa_reconcile_startup_quarantines_total counter (scrape time) replica supervisor Partitions set aside at startup because a stream index did not parse, rather than refusing to start.
mirexa_replication_cert_expiry_timestamp_seconds gauge (scrape time) replication listener When the certificate this node presents to replication peers expires (Unix seconds). Follows a SIGHUP rotation at once; NaN if unreadable. Alert on expiry − time() < 14d.

See Replication and Reconciliation, scrubbing and repair.

Process

From the standard Prometheus process collector, registered on every node (Linux values; some are unavailable on other platforms). The dashboard's cluster view reads CPU, start time and resident memory from these same families through the NODE_STATS frame, so it shows what Prometheus scraped.[4]

Name Type Meaning
process_cpu_seconds_total counter User plus system CPU time.
process_resident_memory_bytes gauge Resident memory.
process_virtual_memory_bytes gauge Virtual memory.
process_virtual_memory_max_bytes gauge Virtual memory limit.
process_open_fds gauge Open file descriptors.
process_max_fds gauge Descriptor limit.
process_start_time_seconds gauge Process start, Unix seconds.
process_network_receive_bytes_total counter Bytes received by the process.
process_network_transmit_bytes_total counter Bytes sent by the process.

The Go runtime collector's go_* families (goroutines, GC, memory classes) are also exported; see the Prometheus client documentation for their meaning.

Dashboard metrics

The web dashboard (cmd/dashboard) keeps its own small registry, separate from the node's: these describe its upstream connection to a node, which the node cannot see (a refused handshake, a reconnect, a client absorbing shed batches). Things the node already counts — ingest rates, dropped subscription batches — are deliberately not duplicated.[5]

It is served on dashboard.metrics_addr (default 127.0.0.1:9101), a listener separate from the UI's dashboard.addr; validation refuses the two being equal. An empty value disables it, with a startup warning. A port already in use is a startup error. No Go or process collector is registered here, and these families are not in catalog.txt.

Name Type Labels Meaning
mirexa_dashboard_upstream_connection_state gauge state 1 for the current state, 0 for the others. state is disconnected, connected, open or half-open (the last two are circuit-breaker states).
mirexa_dashboard_upstream_auth_failures_total counter — Failures the node refused for authentication (ERROR Unauthorized): an expired token or withdrawn grant. Retrying never resolves one — rewrite the token file.
mirexa_dashboard_upstream_transport_failures_total counter — Failures from the network or a node restart; usually resolve themselves.
mirexa_dashboard_upstream_ingest_calls_total counter outcome Ingest calls (for example gap fills) through the upstream client, ok or error.
mirexa_dashboard_upstream_ingest_attempts_total counter outcome Wire attempts behind those calls. Exceeding the call count means the node shed batches and the client retried — load no node-side counter shows.
mirexa_dashboard_upstream_stream_records_total counter — Records delivered to the dashboard over subscriptions.
mirexa_dashboard_upstream_reconnects_total counter (scrape time) — Connections that replaced a dead one, excluding the first.
mirexa_dashboard_upstream_granted_permission gauge (scrape time) permission (constant per series) 1 when the node's current grant includes the permission: one series each for READ_TICKS, READ_CANDLES, WRITE_TICKS, WRITE_CANDLES, ADMIN_STREAM, LIST_STREAMS, ADMIN_CLUSTER. Re-read on every reconnect, so a rotated token or a tightened security.max_permissions narrows it without a restart.

Every labelled series is initialised to zero at startup, so these families are scrapeable before their first event and an alert written against them can fire (TestDashMetrics_EverySeriesExistsBeforeItsFirstEvent). The last two families are registered once the upstream client is built. See The web dashboard.

References

Source

Tests

Further reading

External

  • Prometheus, "Metric types" — https://prometheus.io/docs/concepts/metric_types/
  • Prometheus, "Exposition formats" — https://prometheus.io/docs/instrumenting/exposition_formats/
  • Prometheus Go client, collectors package (process and Go collectors) — https://pkg.go.dev/github.com/prometheus/client_golang/prometheus/collectors
  • Diego Ongaro and John Ousterhout, "In Search of an Understandable Consensus Algorithm (Extended Version)" — https://raft.github.io/raft.pdf

  1. observability.NewServer in /internal/observability/server.go; defaults in config.Default in /internal/config/config.go; started from run in /cmd/server/main.go. Proved by TestServer_MetricsEndpoint. ↩︎

  2. /internal/observability/catalog_test.go, TestCatalog_IsCurrent and TestCatalog_CoversEveryRegisterMethod. ↩︎

  3. dataHealthCollector in /internal/observability/data_health.go and Dispatcher.DataHealth in /internal/ingestion/data_health.go; TestDataHealth_AMarketClosureIsNotStaleness, TestDataHealth_PerStreamSeriesOnlyForServedStreams. ↩︎

  4. Metrics.NodeSnapshot in /internal/observability/node_snapshot.go; TestNodeSnapshot_ReadsWhatTheRegistryExports. ↩︎

  5. /cmd/dashboard/metrics.go; TestDashMetrics_EverySeriesExistsBeforeItsFirstEvent, TestDashMetrics_AuthFailureDoesNotIncrementTransport. ↩︎