Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

Get Dashboard

GET/api/v2/dashboards/{id}
API playground

Retrieves a specific dashboard by ID

Authorizations

  • AuthorizationBearer API Keyheaderrequired
    `Authorization: Bearer <token>`

Path parameters

  • idstringrequired

    Dashboard ID

Response

JSON

200

Successfully retrieved dashboard

JSON
  • dataoptionalobject

    The dashboard object.

    9 properties
    • idoptionalstring

      Dashboard ID

      Example: "65f5e4a3b9e77c001a567890"
    • nameoptionalstring

      Dashboard name

      maxLength: 1024
      Example: "Service Overview"
    • tilesoptionalarray ofunknown

      List of tiles/charts in the dashboard

      10 properties
      • namestringrequired

        Display name for the tile

        Example: "Error Rate"
      • xintegerrequired

        Horizontal position in the grid (0-based)

        maximum: 23, minimum: 0
        Example: 0
      • yintegerrequired

        Vertical position in the grid (0-based)

        minimum: 0
        Example: 0
      • wintegerrequired

        Width in grid units

        maximum: 24, minimum: 1
        Example: 6
      • hintegerrequired

        Height in grid units

        minimum: 1
        Example: 3
      • idstringrequired

        Unique tile ID assigned by the server.

        maxLength: 36
        Example: "65f5e4a3b9e77c001a901234"
      • configoptionalLineChartConfigorBarChartConfigorStackedLineChartConfigorTableChartConfigorNumberChartConfigorPieChartConfigorCategoricalBarChartConfigorHeatmapChartConfigorSearchChartConfigorEventPatternsChartConfigorMarkdownChartConfig

        Chart configuration for the tile. The displayType field determines which variant is used. Replaces the deprecated "series" and "asRatio" fields.

        11 variants

        One of the following:

        • LineChartConfigline
        • BarChartConfigstacked_bar
        • StackedLineChartConfigstacked_line
        • TableChartConfigtable
        • NumberChartConfignumber
        • PieChartConfigpie
        • CategoricalBarChartConfigbar
        • HeatmapChartConfigheatmap
        • SearchChartConfigsearch
          5 properties
          • displayTypesearchrequired

            Display type discriminator. Must be "search" for search/log viewer tiles.

            Example: "search"
          • sourceIdstringrequired

            ID of the data source to query, or $sourceVariable of a DATA_SOURCE filter on the dashboard.

            Example: "65f5e4a3b9e77c001a111111"
          • selectstringrequired

            Comma-separated list of expressions to display.

            maxLength: 10000
            Example: "timestamp, level, message"
          • whereLanguagesqlorlucenerequired

            Query language for the where clause.

          • whereoptionalstring

            Filter condition for the search (syntax depends on whereLanguage).

            maxLength: 10000
            Default: "" · Example: "level:error"
        • EventPatternsChartConfigevent_patterns
          5 properties
          • displayTypeevent_patternsrequired

            Display type discriminator. Must be "event_patterns" for pattern mining tiles.

            Example: "event_patterns"
          • sourceIdstringrequired

            ID of the data source to mine patterns from, or $sourceVariable of a DATA_SOURCE filter on the dashboard.

            Example: "65f5e4a3b9e77c001a111111"
          • selectoptionalstring

            Column or expression to mine patterns from. Leave empty to use the source default (Body for logs, SpanName for traces).

            maxLength: 10000
            Default: "" · Example: "Body"
          • whereoptionalstring

            Filter condition for the pattern mining query (syntax depends on whereLanguage).

            maxLength: 10000
            Default: "" · Example: "level:error"
          • whereLanguageoptionalsqlorlucene

            Query language for the where clause.

        • MarkdownChartConfigmarkdown
          2 properties
          • displayTypemarkdownrequired

            Display type discriminator. Must be "markdown" for markdown text tiles.

            Example: "markdown"
          • markdownoptionalstring

            Markdown content to render inside the tile.

            maxLength: 50000
            Example: "# Dashboard Title\n\nThis is a markdown widget."
      • containerIdoptionalstring

        References a DashboardContainer by id. Tiles without containerId render in the default ungrouped area.

        maxLength: 256, minLength: 1
        Example: "service-health"
      • tabIdoptionalstring

        References a tab inside the tile's container by id. Requires containerId to be set, and the container to declare a matching tab.

        maxLength: 256, minLength: 1
        Example: "errors"
      • descriptionoptionalstring

        Short explanation of the tile, shown as a tooltip next to its name.

        maxLength: 1024
        Example: "Share of API requests that returned a 5xx response."
    • tagsoptionalarray ofstring

      Tags for organizing and filtering dashboards

      maxLength: 32
      Example: ["production","monitoring"]
    • filtersoptionalarray ofQueryExpressionFilterInputorStaticListFilterInputorPrometheusLabelFilterInputorSqlQueryFilterInputorAdhocFilterInputorDataSourceFilterInputorConnectionFilterInput

      Dropdown filters added to the dashboard. Each one broadcasts its selected value as a condition, acts as a variable which can be referenced in tile queries, or both.

      7 variants

      One of the following:

      • QueryExpressionFilterInputQUERY_EXPRESSION
        14 properties
        • typeQUERY_EXPRESSIONrequired

          Filter type discriminator. Must be "QUERY_EXPRESSION".

          Example: "QUERY_EXPRESSION"
        • namestringrequired

          Display name for the dashboard filter key

          minLength: 1
          Example: "Environment"
        • expressionstringrequired

          SQL expression used when querying values for this filter, and when applying this dashboard filter to tiles.

          minLength: 1
          Example: "environment"
        • sourceIdstringrequired

          Source ID this dashboard filter key applies to, or $name of a DATA_SOURCE filter on the dashboard

          Example: "65f5e4a3b9e77c001a111111"
        • sourceMetricTypeoptionalsumorgaugeorhistogramorsummaryorexponential histogram

          Metric type when source is metrics

          Example: "gauge"
        • whereoptionalstring

          Optional WHERE condition to scope which rows this filter key reads values from

          Example: "ServiceName:api"
        • whereLanguageoptionalsqlorlucene

          Language of the where condition

          Default: "sql" · Example: "lucene"
        • appliesToSourceIdsoptionalarray ofstring

          Optional list of source IDs this filter applies to. Omit or provide an empty array to apply the filter to ALL tiles regardless of source. A non-empty array restricts the filter to only tiles whose source ID is in the list; tiles using other sources are not affected by the selected filter value(s). Scopes the broadcast condition only, so a non-empty array is rejected when isBroadcastEnabled is false, and is omitted from responses for such a filter.

          Example: ["65f5e4a3b9e77c001a111111"]
        • isBroadcastEnabledoptionalboolean

          Whether the selected value is applied as a filter condition on every builder tile this filter applies to (see appliesToSourceIds), and every raw sql tile using the $__filters macro. Omitting the field means enabled.

          Default: true · Example: false
        • isVariableEnabledoptionalboolean

          Whether the selected value is exposed to tile queries as a dashboard variable named by variableName. Tiles may reference it as $variableName or using the (preferred) $__filter($<variableName>) and $__conditionalAll(<condition>, $<variableName>) macros.

          Default: false · Example: true
        • variableNameoptionalstring

          Token tiles reference this filter's selected value by, as $variableName. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed, so a variable-enabled filter whose name derives nothing usable must send this field explicitly. Variable names must be unique across a dashboard's variable-enabled filters. Names the variable only, so the field is rejected when isVariableEnabled is not true, and is omitted from responses for such a filter.

          maxLength: 64, pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
          Example: "environment"
        • minSelectionsoptional0or1

          Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior.

          Default: 0 · Example: 1
        • isGlobalRequirementoptionalboolean

          Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1.

          Default: false · Example: true
        • maxSelectionsoptional1

          Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior.

          Example: 1
      • StaticListFilterInputSTATIC_LIST
        9 properties
        • typeSTATIC_LISTrequired

          Discriminator. Must be "STATIC_LIST".

          Example: "STATIC_LIST"
        • namestringrequired

          Display name for the dashboard filter key

          minLength: 1
          Example: "Environment"
        • optionsarray ofstringrequired

          The values this filter's dropdown offers. Must be non-empty and free of duplicates.

          maxLength: 10000, minLength: 1
          Example: ["prod","staging","dev"]
        • isBroadcastEnabledoptionalfalse

          Must be false — there is no expression to broadcast. Omit it and it is false.

          Default: false · Example: false
        • isVariableEnabledoptionaltrue

          Must be true if provided, and is true when omitted. Tiles reference the selection as $variableName, or with the $__filter(<expression>, $<variableName>) and $__conditionalAll(<condition>, $<variableName>) macros. The one-argument $__filter($<variableName>) form renders the filter's own expression, which this kind of filter does not have, so it reports that the expression must be passed explicitly.

          Default: true · Example: true
        • variableNameoptionalstring

          Token tiles reference this filter's selected value by, as $variableName. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed, so a variable-enabled filter whose name derives nothing usable must send this field explicitly. Variable names must be unique across a dashboard's variable-enabled filters. Names the variable only, so the field is rejected when isVariableEnabled is not true, and is omitted from responses for such a filter.

          maxLength: 64, pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
          Example: "environment"
        • minSelectionsoptional0or1

          Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior.

          Default: 0 · Example: 1
        • isGlobalRequirementoptionalboolean

          Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1.

          Default: false · Example: true
        • maxSelectionsoptional1

          Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior.

          Example: 1
      • PrometheusLabelFilterInputPROMETHEUS_LABEL
        11 properties
        • typePROMETHEUS_LABELrequired

          Discriminator. Must be "PROMETHEUS_LABEL".

          Example: "PROMETHEUS_LABEL"
        • namestringrequired

          Display name for the dashboard filter

          minLength: 1
          Example: "Pod"
        • sourceIdstringrequired

          Id of the PromQL source the label values are read from.

          Example: "65f5e4a3b9e77c001a123456"
        • labelstringrequired

          Label whose values populate the dropdown. Use "name" to list metric names.

          maxLength: 1024, minLength: 1
          Example: "pod"
        • matchoptionalstring

          Optional Prometheus series selector narrowing which series the label values are read from.

          minLength: 1
          Example: "up{job=\"api\"}"
        • isBroadcastEnabledoptionalfalse

          Must be false or omitted.

          Default: false · Example: false
        • isVariableEnabledoptionaltrue

          Must be true if provided, and is true when omitted. Tiles reference the selection as $variableName.

          Default: true · Example: true
        • variableNameoptionalstring

          Token that tiles reference this filter's selected value by, as $variableName. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Variable names must be unique across a dashboard's variable-enabled filters.

          maxLength: 64, pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
          Example: "pod"
        • minSelectionsoptional0or1

          Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior.

          Default: 0 · Example: 1
        • isGlobalRequirementoptionalboolean

          Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1.

          Default: false · Example: true
        • maxSelectionsoptional1

          Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior.

          Example: 1
      • SqlQueryFilterInputSQL_QUERY
        11 properties
        • typeSQL_QUERYrequired

          Discriminator. Must be "SQL_QUERY".

          Example: "SQL_QUERY"
        • namestringrequired

          Display name for the dashboard filter

          minLength: 1
          Example: "Environment"
        • connectionIdstringrequired

          ClickHouse connection the query runs on: a connection ID, or $name of a CONNECTION filter on the dashboard.

          Example: "65f5e4a3b9e77c001a567890"
        • sqlTemplatestringrequired

          Query whose first column populates the dropdown. May use the time macros and other filters' variables. $__sourceTable and $__filters need a sourceId; $__filters expands to the dashboard's broadcast filter selections for that source.

          minLength: 1
          Example: "SELECT DISTINCT env FROM default.envs ORDER BY env"
        • sourceIdoptionalstring

          Optional Log, Trace, Session, or Metric source on the same connection, or $name of a DATA_SOURCE filter on this dashboard. Lets sqlTemplate use $__sourceTable and $__filters.

          Example: "65f5e4a3b9e77c001a345678"
        • isBroadcastEnabledoptionalfalse

          Must be false or omitted.

          Default: false · Example: false
        • isVariableEnabledoptionaltrue

          Must be true if provided, and is true when omitted. Tiles reference the selection as $variableName.

          Default: true · Example: true
        • variableNameoptionalstring

          Token that tiles reference this filter's selected value by, as $variableName. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Must be unique across a dashboard's variable-enabled filters.

          maxLength: 64, pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
          Example: "env"
        • minSelectionsoptional0or1

          Set to 1 to make the filter required.

          Default: 0 · Example: 1
        • isGlobalRequirementoptionalboolean

          Widens a required filter's block to every tile on the dashboard. Ignored unless minSelections is 1.

          Default: false · Example: true
        • maxSelectionsoptional1

          Set to 1 to make the filter single-select.

          Example: 1
      • AdhocFilterInputADHOC
        10 properties
        • typeADHOCrequired

          Discriminator. Must be "ADHOC".

          Example: "ADHOC"
        • namestringrequired

          Display name for the dashboard filter

          minLength: 1
          Example: "Conditions"
        • sourceTypesqlorpromqlrequired

          The kind of sources the filter reads keys from and applies to: Log, Trace, or Session sources for sql, PromQL sources for promql.

          Example: "sql"
        • sourcesarray ofstringrequired

          IDs of the sources whose keys and values the filter suggests, all of sourceType, or $name of data source variables.

          Example: ["65f5e4a3b9e77c001a111111"]
        • whereoptionalstring

          Optional condition narrowing the rows keys and values are suggested from. Never applied to tiles. May reference the dashboard's variables. sql filters only: rejected when sourceType is promql.

          Example: "ServiceName:api"
        • whereLanguageoptionalsqlorlucene

          Language of the where condition. Rejected when sourceType is promql.

          Example: "lucene"
        • appliesToSourceIdsoptionalarray ofstring

          IDs of the sources whose tiles the conditions apply to, all of sourceType, or $name of data source variables. Omit or send an empty array to apply to the tiles of the filter's sources.

          Example: ["65f5e4a3b9e77c001a111111"]
        • isBroadcastEnabledoptionaltrue

          Must be true or omitted.

          Default: true · Example: true
        • isVariableEnabledoptionaltrue

          Must be true or omitted.

          Default: true · Example: true
        • variableNameoptionalstring

          Unique name the filter's conditions are saved under, in savedFilterValues and the dashboard URL. Tiles can't reference it as a variable. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Must be unique across a dashboard's variable-enabled filters.

          maxLength: 64, pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
          Example: "conditions"
      • DataSourceFilterInputDATA_SOURCE
        10 properties
        • typeDATA_SOURCErequired

          Filter type discriminator. Must be "DATA_SOURCE".

          Example: "DATA_SOURCE"
        • namestringrequired

          Display name of the variable's dropdown

          minLength: 1
          Example: "Logs source"
        • allowedSourceKindsarray oflogortraceorsessionormetricorpromqlrequired

          Kinds of sources offered. A field can reference the variable if it accepts at least one listed kind. A tile whose selected source is a kind it cannot use shows an error instead of running.

          Example: ["log"]
        • variableNameoptionalstring

          Token tiles and filters reference the selected source by, as $variableName.

          maxLength: 64, pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
          Example: "logs"
        • isGlobalRequirementoptionalboolean

          Blocks every tile on the dashboard until a value is selected. False (the default) blocks only the tiles that reference the variable.

          Default: false · Example: true
        • minSelectionsoptional1

          Must be 1 if provided. The variable always requires a selection.

          Default: 1 · Example: 1
        • maxSelectionsoptional1

          Must be 1 if provided. The variable is always single-select.

          Default: 1 · Example: 1
        • isBroadcastEnabledoptionalfalse

          Must be false or omitted.

          Default: false · Example: false
        • isVariableEnabledoptionaltrue

          Must be true if provided, and is true when omitted.

          Default: true · Example: true
        • connectionIdoptionalstring

          Optional connection the offered sources are limited to: a connection ID, or $name of a CONNECTION filter on the dashboard.

          Example: "$conn"
      • ConnectionFilterInputCONNECTION
        8 properties
        • typeCONNECTIONrequired

          Filter type discriminator. Must be "CONNECTION".

          Example: "CONNECTION"
        • namestringrequired

          Display name of the variable's dropdown

          minLength: 1
          Example: "Connection"
        • variableNameoptionalstring

          Token raw SQL tiles reference the selected connection by, as $variableName.

          maxLength: 64, pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
          Example: "conn"
        • isGlobalRequirementoptionalboolean

          Blocks every tile on the dashboard until a value is selected. False (the default) blocks only the tiles that reference the variable.

          Default: false · Example: true
        • minSelectionsoptional1

          Must be 1 if provided. The variable always requires a selection.

          Default: 1 · Example: 1
        • maxSelectionsoptional1

          Must be 1 if provided. The variable is always single-select.

          Default: 1 · Example: 1
        • isBroadcastEnabledoptionalfalse

          Must be false or omitted.

          Default: false · Example: false
        • isVariableEnabledoptionaltrue

          Must be true if provided, and is true when omitted.

          Default: true · Example: true
    • savedQueryoptionalstringor null

      Optional default dashboard query restored when loading the dashboard.

      Example: "service.name = 'api'"
    • savedQueryLanguageoptionalsqlorluceneor null

      Query language used by savedQuery.

      Default: "lucene" · Example: "sql"
    • savedFilterValuesoptionalarray ofSqlSavedFilterValueorVariableSavedFilterValueorAdhocSavedFilterValue

      Optional default dashboard filter values restored when loading the dashboard.

      3 variants

      One of the following:

      • SqlSavedFilterValue
        2 properties
        • conditionstringrequired

          SQL filter condition. For example use expressions in the form "column IN ('value')".

          maxLength: 10000
          Example: "ServiceName IN ('hdx-oss-dev-api')"
        • typeoptionalsql

          Filter type.

          Default: "sql" · Example: "sql"
      • VariableSavedFilterValue
        3 properties
        • typevariablerequired

          Filter type.

          Example: "variable"
        • namestringrequired

          The variableName of the dashboard variable this selection belongs to. Only allowed for variable-enabled filters.

          maxLength: 1024, minLength: 1
          Example: "service"
        • valuesarray ofstringrequired

          Selected values

          maxLength: 10000
          Example: ["hdx-oss-dev-api"]
      • AdhocSavedFilterValue
        3 properties
        • typeadhocrequired

          Filter type.

          Example: "adhoc"
        • namestringrequired

          The variableName of the ADHOC filter these conditions belong to.

          maxLength: 1024, minLength: 1
          Example: "conditions"
        • conditionsarray ofobjectrequired

          The filter's conditions.

          3 properties
          • keystringrequired

            A SQL expression (column or map access) for sql filters, or a label name for promql filters.

            maxLength: 10000, minLength: 1
            Example: "ServiceName"
          • operator=or!=or=~or!~orLIKEorNOT LIKE+1 morerequired

            Comparison operator. =~ and !~ match a regular expression. IN takes one value per condition. LIKE and NOT LIKE apply to sql filters only; a condition its filter's sourceType can't express is not applied.

            Example: "="
          • valuestringrequired

            Value, pattern, or regular expression to compare against.

            maxLength: 10000
            Example: "api"
    • containersoptionalarray ofobject

      Optional grouping containers. Each tile may join a container via tile.containerId, and a tab inside it via tile.tabId.

      6 properties
      • idstringrequired

        Unique identifier for the container within the dashboard.

        maxLength: 256, minLength: 1
        Example: "service-health"
      • titlestringrequired

        Display title for the container.

        maxLength: 256, minLength: 1
        Example: "Service Health"
      • collapsedbooleanrequired

        Persisted default collapse state. Per-viewer state lives in the URL.

        Example: false
      • collapsibleoptionalboolean

        Whether the user can collapse the group.

        Default: true · Example: true
      • borderedoptionalboolean

        Whether to show a visual border around the group.

        Default: true · Example: true
      • tabsoptionalarray ofobject

        Optional tabs. 2+ entries renders a tab bar; 0-1 entries renders a plain group header. Tiles join a tab via tabId.

        2 properties
        • idstringrequired

          Unique identifier for the tab within its container.

          maxLength: 256, minLength: 1
          Example: "errors"
        • titlestringrequired

          Display title for the tab.

          maxLength: 256, minLength: 1
          Example: "Errors"