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. |
: |
Listen address. Note the default binds every interface, not loopback. |
observability. |
5s |
Bound on reading one request. |
observability. |
10s |
Bound on writing one response. |
observability. |
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:
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>.MetricsConfighas aSubsystemfield that would insert a second prefix (mirexa_<subsystem>_<name>,TestMetrics_Subsystem), butmirexa-serveralways builds the registry withDefaultMetricsConfig(), 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 areGaugeFunc/CounterFunccollectors (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
*Vecwith no label combination observed yet emits no series at all, somirexa_ingestion_shed_batches_totaldoes not exist on a node that has never shed. Write alerts withabsent()oror vector(0)where that matters (TestMetrics_QueryFamiliesAppearInGatherpins the query families' appearance after one query). stream_idis 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- process. |
| query cache | query_ (default false). |
| decoded chunk cache | storage. (default 256 MiB, so registered by default). |
| clustered | cluster.. |
| clustered + control | cluster. and control. — the node runs the control-plane cluster service and its leader-local loops. |
| replica supervisor | clustered + control and cluster. set — the node takes part in replication. |
| replication listener | cluster. and cluster. 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_ |
counter | stream_, partition_ |
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_ |
counter | stream_, partition_ |
always | Ticks accepted. |
mirexa_ |
histogram | partition_ |
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_ |
histogram | partition_ |
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_ |
counter | error_, partition_ |
always | Failed ingests. error_ is get_ (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_ |
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_ (the WAL write buffer is full) or hot_ (the stream's hot cache had no room after waiting for an eviction). |
mirexa_ |
counter | kind |
always | Batches that went through the WAL group-commit barrier — one per INGEST_ sent on the ordinary path. |
mirexa_ |
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_ |
counter | stream_, partition_, 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_ |
counter | stream_ (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_ |
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. 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_ |
counter | kind |
always | Range queries handled, failed ones included. kind is candles or ticks. |
mirexa_ |
counter | kind, error_ |
always | Failed range queries. error_ is stream_ or internal. |
mirexa_ |
histogram | kind |
always | Query latency from dispatcher entry to the assembled result. Buckets 100 µs to ~0.82 s. |
mirexa_ |
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_ |
counter (scrape time) | — | query cache | Range queries answered from the query cache. |
mirexa_ |
counter (scrape time) | — | query cache | Range queries that missed it. |
mirexa_ |
counter (scrape time) | — | decoded chunk cache | Chunk reads served from already-decoded rows. |
mirexa_ |
counter (scrape time) | — | decoded chunk cache | Chunk reads that had to decode the chunk file. |
mirexa_ |
gauge (scrape time) | — | decoded chunk cache | Bytes of decoded rows held now, bounded by storage.. 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_ |
gauge | kind |
always | Live subscriptions registered on the node. |
mirexa_ |
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_ |
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_ |
counter | kind |
always | Subscriptions ended for sustained slowness: network. consecutive drops. |
mirexa_ |
counter | kind, result |
always | Backfills by outcome: completed, canceled (the subscription went away mid-backfill) or failed. |
mirexa_ |
counter | kind |
always | Records sent as backfill. |
mirexa_ |
counter | — | always | New subscribers a saturated node (network.) sent to an in-sync copy of their partition instead of serving them. Moves only in a cluster with copies. |
Network, handshakes and TLS
| Name | Type | Labels | Registered | Meaning |
|---|---|---|---|---|
mirexa_ |
gauge | listener |
always | Open data-plane TCP connections. listener is always tcp. |
mirexa_ |
counter | listener |
always | Connections accepted. |
mirexa_ |
counter | listener |
always | Connections refused because network. was reached. |
mirexa_ |
counter | frame_ |
always | Wire frames parsed, by frame name (for example INGEST_, QUERY_; see Wire protocol). |
mirexa_ |
counter | reason |
always | Frames rejected while parsing the header: short_, invalid_, unsupported_, payload_, invalid_, short_. |
mirexa_ |
counter | result |
always | Handshake and session outcomes. success; failures timeout, expired, validity_, invalid_, undefined_, revoked, or invalid_ (anything else); session_ when an established session's token runs out; reauth_ / reauth_ for in-session token renewal. |
mirexa_ |
histogram | — | always | INIT/INIT_ handshake duration, whatever the outcome. |
mirexa_ |
counter | listener, version |
always | Successful TLS handshakes on the data listener. version is 1.–1. or unknown. |
mirexa_ |
counter | listener |
always | Failed TLS handshakes. |
mirexa_ |
histogram | listener |
always | TLS handshake duration. |
mirexa_ |
counter | result |
always | Certificate reload attempts on the data listener (for example on SIGHUP), success or error. |
mirexa_ |
counter | component, error_ |
always | Every ERROR frame the server sends. component is network (the only producer today); error_ 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_ |
counter | frame_ |
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_ |
counter | frame_ |
always | Reads this node answered from its in-sync copy of a partition instead of redirecting to the primary. A QUERY_ 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_ |
counter | frame_, 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. |
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_ |
gauge | scope |
always | Streams in the stream indexes. |
mirexa_ |
gauge | scope |
always | Candles in flushed base chunks (corrections are not counted twice; data still in the hot cache is not counted). |
mirexa_ |
gauge | scope |
always | Compressed on-disk size of candle chunks, patch chunks included. Excludes the WAL. |
mirexa_ |
gauge | scope |
always | records × 48 — what the candles would occupy uncompressed. Divide by mirexa_ for the compression ratio. |
mirexa_ |
gauge | stream_ |
always | A served stream's bar interval. |
mirexa_ |
gauge | stream_ |
always | Timestamp (Unix seconds) of the newest bar the stream holds, flushed or not. Absent for a stream holding nothing. |
mirexa_ |
gauge | stream_ |
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_ |
gauge | stream_ |
always | Gaps still OPEN — missing data that can be filled. Market closures and filled gaps are not counted. |
mirexa_ |
gauge | stream_ |
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_ |
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_ |
gauge (scrape time) | — | clustered | 1 when this node is the leader. Summed over all nodes it must never exceed 1. |
mirexa_ |
gauge (scrape time) | — | clustered | The term this node believes the group is in. A rising term with has_ flapping is an election storm. |
mirexa_ |
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_ |
gauge (scrape time) | — | clustered | Highest log index applied here. commit_ is the apply backlog. |
mirexa_ |
gauge (scrape time) | — | clustered | Highest index known committed. |
mirexa_ |
gauge (scrape time) | — | clustered | Oldest entry still held; advances when a snapshot lets earlier entries be compacted. |
mirexa_ |
gauge (scrape time) | — | clustered | Newest entry held. |
mirexa_ |
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_ |
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_ |
counter | from, to |
clustered | Replica state changes (NONE, PRIMARY, SYNCING, IN_) 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_ |
counter | method, code |
always (moves only when control.) |
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_ |
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_ |
NaN | Partitions still served by their primary while a copy the directory names is on a fenced node. Nothing is unavailable; redundancy is. |
mirexa_ |
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_ |
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_ |
NaN | Copies the directory is short of cluster. (a divergent copy counts as present). Zero at the default factor of 1. |
mirexa_ |
0 | Partition moves the directory currently intends, at any step. A value that does not fall is a move that cannot progress. |
mirexa_ |
0 | Moves whose target is copying data (catching up, ready to cut, draining the source). Bounded by cluster.. |
mirexa_ |
0 | Moves the directory has left behind (the partition lost its entry, or a third node became primary); they are abandoned. |
mirexa_ |
NaN | Moves the balancer would make, from the leader's latest plan (computed every cluster., 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. off is a recommendation waiting for an operator. |
mirexa_ |
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_ |
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_ |
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_ |
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_ |
gauge (scrape time) | replica supervisor | That copy's sequence distance behind its primary. |
mirexa_ |
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_ |
counter (scrape time) | replica supervisor | Bytes of chunk files the background scrub has re-read and verified (paced by cluster.). A scrub that stops advancing finds nothing. |
mirexa_ |
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_ |
counter (scrape time) | replica supervisor | Chunks rebuilt from another node's copy after failing verification. |
mirexa_ |
counter (scrape time) | replica supervisor | Times a copy here held another history than its primary's and was moved aside to seed again. |
mirexa_ |
counter (scrape time) | replica supervisor | Chunks a copy here dropped because its primary's retention had. |
mirexa_ |
counter (scrape time) | replica supervisor | Partitions set aside at startup because a stream index did not parse, rather than refusing to start. |
mirexa_ |
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_ |
counter | User plus system CPU time. |
process_ |
gauge | Resident memory. |
process_ |
gauge | Virtual memory. |
process_ |
gauge | Virtual memory limit. |
process_ |
gauge | Open file descriptors. |
process_ |
gauge | Descriptor limit. |
process_ |
gauge | Process start, Unix seconds. |
process_ |
counter | Bytes received by the process. |
process_ |
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_ |
gauge | state |
1 for the current state, 0 for the others. state is disconnected, connected, open or half- (the last two are circuit-breaker states). |
mirexa_ |
counter | — | Failures the node refused for authentication (ERROR Unauthorized): an expired token or withdrawn grant. Retrying never resolves one — rewrite the token file. |
mirexa_ |
counter | — | Failures from the network or a node restart; usually resolve themselves. |
mirexa_ |
counter | outcome |
Ingest calls (for example gap fills) through the upstream client, ok or error. |
mirexa_ |
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_ |
counter | — | Records delivered to the dashboard over subscriptions. |
mirexa_ |
counter (scrape time) | — | Connections that replaced a dead one, excluding the first. |
mirexa_ |
gauge (scrape time) | permission (constant per series) |
1 when the node's current grant includes the permission: one series each for READ_, READ_, WRITE_, WRITE_, ADMIN_, LIST_, ADMIN_. Re-read on every reconnect, so a rotated token or a tightened security. 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
- /docs/metrics/catalog.txt — the generated catalog.
observability.NewMetrics, everyRegister*methodobservability.RegisterDataHealth,Dispatcher.DataHealthobservability.NewServer—/metrics,/health,/ready.Metrics.NodeSnapshotnewObservabilityStack,dispatcherOptions,registerDispatcherMetrics,dataServerOptionsstartRaftNode,raftObserverstartClusterReconcilers,startRebalance,startMigrations,startPlacement,newPrimaryLeasestartReplicaSupervisor,registerReconciliationMetrics,startReplicationListener- Recording sites:
recordCandleIngest,recordIngestOutcome,OverloadError,recordQuery,recordBatch,finishBackfill,Handshaker.recordFailure,recordFence,countCopyReads,PerformHandshake,metricsInterceptor,ClusterService.MigrationCounts,ClusterService.PartitionHealthCounts newDashMetrics,bindUpstream,serveMetricsObservabilityConfig,DashboardConfig.MetricsAddr
Tests
TestCatalog_IsCurrent,TestCatalog_CoversEveryRegisterMethod— /internal/observability/catalog_test.goTestMetrics_Subsystem,TestMetrics_IndependentRegistries,TestNewMetrics_AllCollectorsNonNil— /internal/observability/metrics_test.goTestMetrics_QueryFamiliesAppearInGather— /internal/observability/metrics_scrape_test.goTestServer_MetricsEndpoint— /internal/observability/server_test.goTestRegisterRaftLeadership_ExportsTheThreeGauges,TestRegisterRaftReplication_ExportsProgressReadAtScrapeTime,TestRegisterRaftReplication_ApplyTotalIsACounter,TestRaftFamilies_CarryNoGroupLabel— /internal/observability/raft_metrics_test.goTestRegisterMigrations_ExportsThreeGaugesReadAtScrapeTime— /internal/observability/migration_metrics_test.goTestDataHealth_ExportsHoldingsAndPerStreamLevels— /internal/observability/data_health_test.goTestDataHealth_ReportsWhatIsHeldAndHowCurrentEachServedStreamIs,TestDataHealth_AMarketClosureIsNotStaleness,TestDataHealth_PerStreamSeriesOnlyForServedStreams,TestTradingTime_CountsOnlyTheScheduledHours— /internal/ingestion/data_health_test.goTestNodeSnapshot_ReadsWhatTheRegistryExports— /internal/observability/node_snapshot_test.goTestDispatcher_ShedRecordsShedNotError— /internal/ingestion/shed_metrics_test.goTestPartitionHealthCounts_ANodeThatCannotReadItsStateCannotTell— /internal/control/health_test.goTestControlPlaneFSM_ReportsEveryReplicaTransitionItApplies— /internal/raft/transitions_test.goTestObserver_ReceivesTheFirstElection— /internal/raft/observer_test.goTestReplicaLag_TheWorstCopyIsExported— /cmd/server/replica_lag_test.goTestReplicaSupervisor_AChunkThatRotsBelowEveryFloorIsFoundAndRepaired— /cmd/server/repair_test.goTestPhase3_Control_MetricsExportIsPrometheusParseable— /tests/phase3_control_integration_test.goTestDashMetrics_AuthFailureDoesNotIncrementTransport,TestDashMetrics_ConnectionStateZeroesThePreviousState,TestDashMetrics_EverySeriesExistsBeforeItsFirstEvent,TestDashMetrics_AttemptsExceedCallsWhenTheNodeSheds,TestServeMetrics_EmptyAddrDisables— /cmd/dashboard/metrics_test.goTestDashMetrics_AWrongTokenMovesTheAuthCounterAgainstARealNode,TestDashMetrics_GrantGaugeReflectsTheNodesRealAnswer— /cmd/dashboard/metrics_upstream_test.go
Further reading
- Monitoring and alerting
- Configuration reference
- Error codes
- Gaps and trading calendars
- Durability and acknowledgements
- Reconciliation, scrubbing and repair
- The web dashboard
External
- Prometheus, "Metric types" — https://prometheus.io/docs/concepts/metric_types/
- Prometheus, "Exposition formats" — https://prometheus.io/docs/instrumenting/exposition_formats/
- Prometheus Go client,
collectorspackage (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
observability.NewServerin /internal/observability/server.go; defaults inconfig.Defaultin /internal/config/config.go; started fromrunin /cmd/server/main.go. Proved byTestServer_MetricsEndpoint. ↩︎/internal/observability/catalog_test.go,
TestCatalog_IsCurrentandTestCatalog_CoversEveryRegisterMethod. ↩︎dataHealthCollectorin /internal/observability/data_health.go andDispatcher.DataHealthin /internal/ingestion/data_health.go;TestDataHealth_AMarketClosureIsNotStaleness,TestDataHealth_PerStreamSeriesOnlyForServedStreams. ↩︎Metrics.NodeSnapshotin /internal/observability/node_snapshot.go;TestNodeSnapshot_ReadsWhatTheRegistryExports. ↩︎/cmd/dashboard/metrics.go;
TestDashMetrics_EverySeriesExistsBeforeItsFirstEvent,TestDashMetrics_AuthFailureDoesNotIncrementTransport. ↩︎