Expand description
prometheus protocol supportings handles prometheus remote_write, remote_read logic
Structsยง
- Metrics
- Metrics for push gateway protocol
- Time
Series ๐Id
Constantsยง
- DATABASE_
LABEL - DATABASE_
LABEL_ BYTES - FIELD_
NAME_ LABEL - The same as
FIELD_COLUMN_MATCHER
inpromql
crate - METRIC_
NAME_ LABEL - METRIC_
NAME_ LABEL_ BYTES - PHYSICAL_
TABLE_ LABEL - PHYSICAL_
TABLE_ LABEL_ BYTES - SCHEMA_
LABEL - SCHEMA_
LABEL_ BYTES
Functionsยง
- collect_
timeseries_ ๐ids - Collect each rowโs timeseries id This processing is ugly, hope https://github.com/GreptimeTeam/greptimedb/issues/336 making some progress in future.
- extract_
schema_ from_ read_ request - Extract schema from remote read request. Returns the first schema found from any queryโs matchers. Prioritizes schema over database labels.
- lit_
timestamp_ ๐millisecond - 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 ๐ - query_
to_ plan - Create a DataFrame from a remote Query
- recordbatch_
to_ ๐timeseries - recordbatches_
to_ timeseries - snappy_
compress - snappy_
decompress - table_
name - Get table name from remote query
- to_
grpc_ row_ insert_ requests - zstd_
decompress