Skip to content

Reference

groupby

Fields of a groupby variable.

Example

{
  "name": "groupby",
  "type": "groupby",
  "datasource": "prom",
  "default": [
    "pod"
  ],
  "keys": [
    "pod",
    "service",
    "env"
  ]
}

From spec/examples/evolved-features.json.

Fields

Field Type Description
name (required) variableName Referenced in queries as $name, ${name} or ${name:format}.
label string
description string
hide "label", "variable"
skipUrlSync boolean The variable’s value is not read from or written to the URL.
type (required) "groupby"
datasource (required) datasourceRef A configured datasource uid, or ${name} naming a datasource variable declared in variables (before this variable, when used by one); queries then run on the datasource selected in that variable, and macros follow its datasourceType.
default array of string At most 20 items.
keys array of string The labels the picker offers instead of asking the datasource. At most 100 items.

Generated from spec/schema/observespec.v0.json at bac0fe39. Report a problem.

/observeOpen source under Apache-2.0.Grafana is a trademark of Grafana Labs. SlashObserve is not affiliated with or endorsed by Grafana Labs.

Search pages and headings.