Skip to content

PromQL table, number, pie and bar tiles silently ignore every expression after the first #3835

Backlog

Description

@bcanvural

A PromQL tile can hold several expressions, but only line and stacked charts query them all. For every other display type, getQueriedPromqlSeries (packages/common-utils/src/core/promql.ts) keeps only the first expression. The others stay saved on the tile and never run, with no error or warning. The MCP save_dashboard schema mentions this ("other display types query only the first"), but the dashboard doesn't: a reader sees one Value column and can't tell that data is missing.

Example: a table tile with four expressions:

max by (k8s_hpa_name) (k8s_hpa_desired_replicas)
max by (k8s_hpa_name) (k8s_hpa_current_replicas)
max by (k8s_hpa_name) (k8s_hpa_max_replicas)
max by (k8s_hpa_name) (k8s_hpa_min_replicas)

The table shows k8s_hpa_name and one Value column with the desired replicas. clickstack_query_tile returns the same rows. The same happens on tables with 2 to 8 expressions, for example a cost table with one expression per cost type.

Expected: for a table, one value column per expression, joined on the label set, the way a builder table gives one column per select item. If that isn't wanted, then at least a warning on the tile, and a validation error when a tile that isn't a line or stacked chart is saved with more than one expression (editor and MCP).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions