Skip to main content

ingest_remote_write_v2

Function ingest_remote_write_v2 

Source
pub(crate) async fn ingest_remote_write_v2(
    state: &PromStoreState,
    db: &str,
    has_pipeline: bool,
    is_zstd: bool,
    query_ctx: QueryContext,
    body: Bytes,
    body_reserved_bytes: u64,
) -> Result<PromWriteResult, PromWriteV2Error>
Expand description

The axum-free core of a remote-write v2 ingestion, shared with COPY FROM STDIN WITH (FORMAT promwrite, version 2). db labels the per-batch write-progress counters exactly as the HTTP route does.