Structsยง
- Option
Value - Query
Scope ๐ - Relation
Collector ๐
Constantsยง
- DATABASE_
MATCHER ๐ - DEFAULT_
INFO_ ๐METRIC - The table PromQL
inforeads when its label selector names no info metric. - FIELD_
MATCHER ๐ - SCHEMA_
MATCHER ๐
Functionsยง
- collect_
relations ๐ - extract_
metric_ ๐name_ from_ vector_ selector - extract_
tables_ ๐from_ hybrid_ cte_ query - extract_
tables_ ๐from_ prom_ expr - extract_
tables_ from_ prom_ expr_ checked - Extracts all tables referenced by a [
PromExpr], returningNoneif any table reference cannot be resolved statically. - extract_
tables_ from_ prom_ expr_ partial - Extracts the tables referenced by a [
PromExpr] that can be resolved statically, ignoring the ones that cannot. - extract_
tables_ from_ query - Walk through a Query and extract all the tables referenced in it.
- extract_
tables_ ๐from_ query_ ast - extract_
tables_ from_ query_ checked - Walk through a Query and extract its referenced tables, returning
Noneif any table reference cannot be resolved statically. - extract_
tables_ ๐from_ query_ inner - extract_
tables_ ๐from_ sql_ or_ tql - extract_
tables_ ๐from_ sql_ query - Helper function for extract_tables_from_query.
- extract_
tables_ ๐from_ statement - extract_
tables_ from_ statement_ checked - Walks through a
Statementand extracts all referenced tables, returningNoneif any table reference cannot be resolved statically. - extract_
tables_ ๐from_ tql - format_
raw_ object_ name - Format an ObjectName without any quote of its idents.
- location_
to_ index - translate the start location to the index in the sql string
- metadata_
table_ ๐name - parse_
option_ string - reads_
default_ info_ metric - Whether
labels, the second argument of PromQLinfo, selects the default info metric in the current schema: data label matchers only, with no name, modifier oror. - remove_
cte_ ๐names