Skip to main content
inputMetricsQueryStringInput

Fields

avg
[String!]

Columns to average. Append as <alias> to name the result; the default name is avg.

bin
String

Time bucket to group rows by: 1m, 1h, 1d, 1w, 1mon, 1q or 1y. Adds a time column with the start of each bucket.

filter
[String!]

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.

groupBy
[String!]

Columns to group rows by. Append as <alias> to rename one in the result.

max
[String!]

Columns to take the maximum of. Append as <alias> to name the result; the default name is max.

min
[String!]

Columns to take the minimum of. Append as <alias> to name the result; the default name is min.

name
String!
required

Name of the metric to read.

orderBy
[String!]

Sort keys, each <column> asc or <column> desc.

sum
[String!]

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.

top
Int

Maximum number of rows to return. Null = no limit.