Expand description
prometheus protocol supportings handles prometheus remote_write, remote_read logic
StructsΒ§
- Charged
Buffer π - Decompressed bytes together with the memory permits charged for them. The permits are released when the buffer is dropped, so the aggregate memory accounting covers the whole lifetime of the decompressed data.
- Label
Column π
EnumsΒ§
- Label
Values π
ConstantsΒ§
- DATABASE_
LABEL - special label for selecting database name on remote write
- DATABASE_
LABEL_ ALT - DATABASE_
LABEL_ ALT_ BYTES - DATABASE_
LABEL_ BYTES - FIELD_
NAME_ LABEL - The same as
FIELD_COLUMN_MATCHERinpromqlcrate - MAX_
DECOMPRESSED_ REQUEST_ SIZE - Hard cap on the decompressed size of a handler-decompressed request body (Prometheus remote read/write, Loki push).
- METRIC_
NAME_ LABEL - METRIC_
NAME_ LABEL_ BYTES - PHYSICAL_
TABLE_ LABEL - special label for selecting physical table name on remote write
- PHYSICAL_
TABLE_ LABEL_ ALT - PHYSICAL_
TABLE_ LABEL_ ALT_ BYTES - PHYSICAL_
TABLE_ LABEL_ BYTES - SCHEMA_
LABEL Deprecated - deprecated, use DATABASE_LABEL instead
- SCHEMA_
LABEL_ BYTES Deprecated - ZSTD_
DECOMPRESS_ πCHUNK - Size of the chunks a zstd body is decompressed and charged in.
FunctionsΒ§
- append_
recordbatch_ πto_ timeseries - compare_
timeseries_ πlabels - Sort timeseries by labels, matching the former
BTreeMaporder. - extract_
schema_ from_ query - Extract database selector from a remote read query.
- hash_
timeseries π - is_
database_ selection_ label - Check if given label is a database selection label
- is_
physical_ table_ selection_ label - Check if given label is a physical table selection label
- is_
remote_ read_ special_ label - is_
remote_ write_ special_ label - Check if given label is a special label for remote write
- label_
columns π - lit_
timestamp_ πmillisecond - matches_
timeseries π - mock_
timeseries - Mock timeseries for test, it is both used in servers and frontend crate So we present it here
- mock_
timeseries_ new_ label - Add new labels to the mock timeseries.
- mock_
timeseries_ special_ labels - Add new labels to the mock timeseries.
- new_
label π - new_
timeseries π - query_
to_ plan - Create a DataFrame from a remote Query
- recordbatches_
to_ timeseries - row_
labels π - snappy_
compress - snappy_
decompress - Decompresses a raw Snappy body with the hard decoded-size cap enforced, without charging the aggregate request-memory limiter.
- snappy_
decompress_ πlimited - Decompresses a raw Snappy body after enforcing a hard cap on the decoded size and charging the aggregate request-memory limiter.
- table_
name - Get table name from remote query
- to_
grpc_ row_ insert_ requests - zstd_
decompress_ πlimited - Decompresses a zstd body with a hard cap on the decoded size, charging the aggregate request-memory limiter incrementally while the output is materialized (zstd streams donβt declare their decoded size up front).