Expand description
Mira: OTLP in, immutable Arrow blocks out, one binary.
ModulesΒ§
- alert π
- Static-rule alerting: a KYAML document in, webhooks out.
- api π
- The query API.
- config π
- Deployment configuration: KYAML with OmegaConf-style interpolation.
- json π
- OTLP/HTTP with a JSON body.
- mcp π
- MCP, on the same port as everything else.
- pipeline π
- The ingest path.
- proxy π
mira proxy: one read and write surface in front of N storage nodes.- rca π
- The incident write-up, as a tool.
- receiver π
- OTLP receivers.
- telemetry π
- Mira storing Miraβs telemetry, in Mira.
- term π
- A terminal, hand-rolled on
libc. - tui π
- The terminal UI.
- ui π
- The UI, compiled into the binary.
- update π
mira updateβ replace this binary with a release from GitHub.
ConstantsΒ§
- DRAIN_
GRACE π - How long a stop is allowed to take before the process leaves without it.
StaticsΒ§
- QUERIES π
- Queries served and what they cost, since start.
- QUERY_
MAX_ πNANOS - QUERY_
NANOS π - START π
- When the process started, so the counters below have a denominator. Forced in
serve_withrather than left to first touch, or βuptimeβ would mean βseconds since someone first askedβ.
FunctionsΒ§
- block_
bytes π - Sum of the blockβs files. Not derivable from the name β the name carries
everything needed to prune, which is the claim the layout makes; how many
bytes are behind it is a
statper file and only this command wants it. - check_
source π - The guards
serve_withruns, for amira mira --data-dirthat maps exactly the same blocks with no server in front of it. - clap_
error π - A refusal from the parser, as an error from this binary.
- cli π
- The whole command tree, in one place.
- config_
arg π - The five flags more than one mode takes, written once.
- data_
dir_ πarg - drain π
- Stop accepting, then let everything already in flight land.
- first_
stopped π - Resolve as soon as any one flusher has returned.
- health π
- Liveness, plus what the ingest path has refused so far.
- http_
arg π - json_ok π
- load_
from π - Precedence is flag > file > default.
- main π
- many π
optfor a repeatable flag, flattened.- max_
request_ πbytes_ arg - offload_
arg π - offload_
cmd π mira offload list,mira offload restoreandmira offload push.- offload_
verb π - The three
offloadverbs, which differ only in direction. - ops_
router π - The three endpoints that answer for the process rather than for the data: liveness, readiness, and everything this node counts about itself.
- opt π
- One getter for a value that may not have been given or may not exist here.
- peak_
rss π - High-water mark of this processβs resident set, in bytes.
- proxy_
cmd π mira proxy: the HTTP surface ofproxyand nothing else.- ready π
- Readiness is one question: can this instance accept an export and make it
durable? Everything else about the process is
/healthβs. - readyz π
- Readiness: 200 while exports can be made durable, 503 once they cannot.
- replay π
- Push everything the log holds that no block claims back through the flushers, before the listeners open.
- run π
- serve π
- serve_
with π - The server proper, with its stop edge passed in rather than taken from the process. A test can hold that edge; nothing else needs to.
- shutdown π
- Resolve on the first stop signal.
- spawn_
probes π - The two background tasks
mira_core::diagneeds to be readable. - stats π
- Everything this node knows about itself, in one document.
- timed π
- Wrapped around the query router only, so OTLP writes and UI asset fetches do not land in the read latency an operator is reading.
- tui_
source π - Where a
mira mirainvocation should read from.