Module prom_store

Source
Expand description

prometheus protocol supportings handles prometheus remote_write, remote_read logic

Structsยง

Metrics
Metrics for push gateway protocol
TimeSeriesId ๐Ÿ”’

Constantsยง

DATABASE_LABEL
DATABASE_LABEL_BYTES
FIELD_NAME_LABEL
The same as FIELD_COLUMN_MATCHER in promql 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