Skip to main content

Crate mira

Crate mira 

Source
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_with rather 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 stat per file and only this command wants it.
check_source πŸ”’
The guards serve_with runs, for a mira mira --data-dir that 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 πŸ”’
opt for a repeatable flag, flattened.
max_request_bytes_arg πŸ”’
offload_arg πŸ”’
offload_cmd πŸ”’
mira offload list, mira offload restore and mira offload push.
offload_verb πŸ”’
The three offload verbs, 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 of proxy and 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::diag needs 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 mira invocation should read from.