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 - 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 - 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
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.
- 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
- 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