Skip to main content

METRIC_NAME_KEY

Constant METRIC_NAME_KEY 

Source
pub const METRIC_NAME_KEY: &str = "greptime:metric_name";
Expand description

Key used to store whether the column carries the metric name of each row in arrow field’s metadata.

A PromQL result normally carries one metric name for the whole response, which the response layer derives from the statement. A native set operator reports the series of both operands, so its rows carry the name of the side each one came from, and that name is a column of the plan. This declaration is what says a column is that name rather than an ordinary label; a column’s name cannot say it, because a label an operation generates may legitimately be called __name__.