MetricsQueryStringInput
Selects a metric and how to group, filter, aggregate and sort its rows.
MetricsQueryStringInputFields
Columns to average. Append as <alias> to name the result; the default name is avg.
Time bucket to group rows by: 1m, 1h, 1d, 1w, 1mon, 1q or 1y. Adds a time column with the start of each bucket.
Conditions, all of which must hold, each <column> <operator> <value>. Operators: eq, neq, lt, gt, gte, lte, in. A column is a name or tags['<key>'].
Start of the time range, inclusive, in UTC. Null = no start. Must not be after to.
Columns to group rows by. Append as <alias> to rename one in the result.
Columns to take the maximum of. Append as <alias> to name the result; the default name is max.
Columns to take the minimum of. Append as <alias> to name the result; the default name is min.
Name of the metric to read.
Sort keys, each <column> asc or <column> desc.
Columns to sum. Append as <alias> to name the result; the default name is sum. With no sum, avg, min or max, rows sum the value column as value.
End of the time range, inclusive, in UTC. Null = no end.
Maximum number of rows to return. Null = no limit.
Was this page helpful?