Repository navigation
Description
Problem or Motivation
After #2700, the panel "Telemetry: $sub_command" of k8s/monitoring/dashboards/devops-cli.json repeats for each selected sub-command. With All selected, a sub-command that did not run in the time range still gets a panel with "No data", and the row gets long.
Proposed Solution & Architectural Design
Grafana 13 dynamic dashboards give the Auto grid layout and a show/hide rule "Query result: has data", which hides such a panel. Both need the v2 dashboard schema.
The dashboard sidecar feeds the classic file provider. That provider refuses a plain v2 dashboard with "dashboard appears to be in v2 format. Please use the /apis/dashboard.grafana.app/v2 API". One report says that a Kubernetes-style file with apiVersion: dashboard.grafana.app/v2 loads (https://community.grafana.com/t/provisioning-in-grafana-13-with-v2-dashboards/163029).
- Confirm on the cluster that the sidecar's file provider loads a Kubernetes-style v2 dashboard, and that it stays provisioned after a restart.
- If it loads: convert
devops-cli.jsonto v2, put the sub-command row on an Auto grid, add the "has data" rule to the repeated panel, and changesrc/devops_cli/grafanaand the dashboard tests to read the v2 shape. - If it does not load: return this issue with the evidence.
Target Subsystem
Telemetry: k8s/monitoring/dashboards/devops-cli.json, src/devops_cli/grafana/, the dashboard tests.
Existing Tool Considered
Grafana dynamic dashboards (Auto grid, conditional rendering). No code is built.
Depends on #2700.
Alternatives check of 2026-11-04: partly.
Tool: grafana/grafana-foundation-sdk (https://github.com/grafana/grafana-foundation-sdk), Apache-2.0, last activity 2026-11-03, maintained.
Proposed design
Problem statement
Close this item as not planned. #4707 (#5194) removed the panel Telemetry: $sub_command and made the row "Sub-commands" one table. No panel repeats, so no empty panel is left to hide. The v2 conversion and the Auto grid have no object. The repository at this commit already holds the table and the test that guards it.
Acceptance criteria
Requirement: The Sub-commands row holds one table
The row "Sub-commands" of k8s/devops/dashboards/devops-cli.json SHALL hold one table panel and no panel that repeats.
Scenario: No repeated panel in the row
- WHEN A test reads the row "Sub-commands" of
k8s/devops/dashboards/devops-cli.json - THEN The row holds one panel of type
table, and that panel has norepeatkey
Requirement: The dashboard keeps the classic schema
k8s/devops/dashboards/devops-cli.json MUST keep a top-level panels array and MUST hold no apiVersion key.
Scenario: Classic schema check
- WHEN A test parses
k8s/devops/dashboards/devops-cli.jsonas JSON - THEN The object holds a
panelsarray and noapiVersionkey
Existing Tool Considered
grafana/grafana-foundation-sdk (https://github.com/grafana/grafana-foundation-sdk), Apache-2.0, last activity 2026-11-03, maintained. It covers the need in part: typed builders for the v2 dashboard resource model, AutoGrid and AutoGridItem builders for the sub-command row, conditional-rendering builders including a data condition with a boolean value, and a Python package. It lacks the rest: it does not verify that the sidecar's classic file provider loads a Kubernetes-style v2 file or that the file stays provisioned after a restart; it does not convert the existing devops-cli.json; it gives no ready-made v2 JSON for this dashboard; and it does not provision dashboards. The need is gone: #4707 (#5194) replaced the repeated panel with one table, so no panel repeats and no v2 builder is needed. The change builds no code to replace the SDK, so it has no build cost.
Key questions
- Does the panel
Telemetry: $sub_commandstill repeat in the devops-cli dashboard?: No. fix(monitoring): make the GitHub and command panels readable #4707 (fix(monitoring): make the GitHub and command panels readable #5194) removed the repeated panel and the row "Sub-commands" now holds one table of the selected sub-commands. The command-telemetry spec states that the row holds one table and no panel that repeats, andtest_cli_dashboard_shows_the_selected_sub_commands_in_one_tableasserts it. [sources: openspec/specs/command-telemetry/spec.md, tests/grafana/test_grafana_dashboards.py, k8s/devops/dashboards/devops-cli.json] - Which file holds the devops-cli dashboard?:
k8s/devops/dashboards/devops-cli.json. The product dashboards moved tok8s/devops/dashboards/(refactor(k8s): split the product dashboards and rules in place #5292), so the path in the issue body,k8s/monitoring/dashboards/devops-cli.json, is out of date. The dashboard tests read the file from the product folder. [sources: tests/grafana/test_grafana_dashboards.py, openspec/specs/command-telemetry/spec.md] - Does the item still need the v2 dashboard schema, the Auto grid and the has-data rule?: No. No panel repeats, so no empty panel is left to hide and no Auto grid or hide rule is needed. Keep the dashboard in the classic schema and close the item as not planned. (best practice) [sources: openspec/specs/command-telemetry/spec.md, tests/grafana/test_grafana_dashboards.py]
- Chosen: Keep the classic schema and close the item as not planned. The repeated panel is gone, so the change has no object and the file provider needs no v2 file.
- Rejected: Convert
devops-cli.jsonto v2 and add the Auto grid and the has-data rule. No panel repeats, so the conversion hides nothing and changes a working dashboard for no result. - Rejected: Return the issue with the file-provider evidence. The block is moot when the need is gone; no cluster check is needed.
- Does the sidecar's classic file provider load a Kubernetes-style v2 dashboard?: No source shows it. The cited report shows the classic file provider rejecting a v2 dashboard with "dashboard appears to be in v2 format. Please use the /apis/dashboard.grafana.app/v2 API", and its Kubernetes-style file loaded only as the old schema. The repository configures the classic file provider and the dashboard sidecar in
k8s/monitoring/grafana-values.yaml. This block no longer applies, because the item needs no v2 file. [sources: k8s/monitoring/grafana-values.yaml]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
feat(telemetry): the CLI dashboard repeats a panel per sub-command (#…
devops-cli-service commentedon Oct 29, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The candidate adds a new capability (conditional panel visibility) using Grafana 13 v2 features.It improves dashboard readability but does not block any workflow or fix a broken feature.Users see fewer empty panels, which reduces visual noise, but the data is still accessible.Requires v2 schema conversion, sidecar verification, code updates in src/devops_cli/grafana, and test changes.Both address sub-command panels that have no data, but #1241 fixed the variable to list all subcommands while the candidate adds a show/hide rule to hide empty panels.devops-cli-service commentedon Oct 30, 2026
Refine cannot set this item to Ready at 46fd02d until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 4, 2026
Alternatives check: partly
Tool: grafana/grafana-foundation-sdk (https://github.com/grafana/grafana-foundation-sdk)
Covers:
Lacks:
Searches run:
Sources:
Checked on 2026-11-04. A person decides what this means for the item. The check changes no label and closes no issue.
[-]feat(telemetry): the devops-cli dashboard hides a sub-command panel that has no data, with the Grafana 13 Auto grid[/-][+]feat(telemetry): Hide empty sub-command panels in devops-cli dashboard[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 98 characters, and the limit is 60. The type and the scope stay.
feat(telemetry): the devops-cli dashboard hides a sub-command panel that has no data, with the Grafana 13 Auto gridfeat(telemetry): Hide empty sub-command panels in devops-cli dashboarddevops-cli-service commentedon Nov 12, 2026
Refine cannot set this item to Ready at acb4e19 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
k8s/monitoring/grafana-values.yaml.7 remaining items
devops-cli-service commentedon Nov 14, 2026
Staged: branch
feat/2703-hide-empty-sub-command-panels-in, draft pull request #5598. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
A model review of the plan found these points. They stop no draft, and a person judges them:
criterion_droppedat issue (Requirement: The dashboard keeps the classic schema): The issue's acceptance criteria include a requirement that the dashboard keeps the classic schema, with a scenario in which a test parses the file and finds apanelsarray and noapiVersionkey. The plan has a spec delta of none, no test and no criteria. It records the rule only in prose indocs/DESIGN.md. A document edit does not assert that rule, and theuv run devops ci docsverify cannot check it. A search found no existing test for the rule. Evidence: "k8s/devops/dashboards/devops-cli.jsonMUST keep a top-levelpanelsarray and MUST hold noapiVersionkey."The runs of the planner and the review made 59 model request(s), and used 3130218 input tokens and 94686 output tokens. The tool calls, in order:
search_code({"text":"\"repeat\""})list_files({"directory":"k8s/devops/dashboards"})read_file({"path":"tests/grafana/test_grafana_dashboards.py","start_line":1120,"end_line":1190})read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":680,"end_line":850})search_code({"text":"k8s/monitoring/dashboards/devops-cli.json"})search_code({"text":"Sub-commands"})list_files({"directory":"docs"})search_code({"text":"devops-cli-telemetry"})list_files({"directory":"tests/fixtures/roadmap_eval/stage"})search_code({"text":"dashboard"})read_issue({"number":2700})read_issue({"number":4707})find_issues({"terms":"devops-cli.json dashboard"})search_code({"text":"\"skip_specs\": true"})read_spec({"capability":"grafana-dashboard-lint"})read_file({"path":"docs/TELEMETRY.md","start_line":1,"end_line":70})list_files({"directory":"docs/guidelines"})search_code({"text":"Grafana dashboards"})search_code({"text":"dashboards/"})search_code({"text":"devops ci docs"})read_file({"path":"docs/DESIGN.md","start_line":250,"end_line":266})search_code({"text":"sidecar"})read_file({"path":"k8s/monitoring/grafana-values.yaml","start_line":1,"end_line":60})read_file({"path":"k8s/monitoring/grafana-values.yaml","start_line":200,"end_line":235})search_code({"text":"_PRODUCT_DASHBOARDS"})read_file({"path":"tests/grafana/test_grafana_dashboards.py","start_line":25,"end_line":70})search_code({"text":"_REPO_DASHBOARD_FILES"})read_file({"path":"tests/grafana/test_grafana_dashboards.py","start_line":175,"end_line":230})search_code({"text":"apiVersion"})search_code({"text":"| Grafana"})search_code({"text":"apiVersion"})search_code({"text":"test_cli_dashboard_shows_the_selected_sub_commands_in_one_table"})read_file({"path":"tests/grafana/test_grafana_dashboards.py","start_line":1135,"end_line":1165})search_code({"text":"\"apiVersion\" not in"})search_code({"text":"apiVersion\" not in"})search_code({"text":"\"panels\" in"})search_code({"text":"classic schema"})search_code({"text":"v2 format"})search_code({"text":"\"docs\""})search_code({"text":"devops ci docs"})search_code({"text":"no 'apiVersion'"})list_files({"directory":"k8s/devops/dashboards"})search_code({"text":"repeatDirection"})read_file({"path":"tests/grafana/test_grafana_dashboards.py","start_line":1100,"end_line":1180})search_code({"text":"k8s/devops/dashboards"})read_file({"end_line":90,"path":"tests/grafana/test_grafana_dashboards.py","start_line":1})search_code({"text":"apiVersion"})search_code({"text":"classic"})search_code({"text":"schemaVersion"})read_file({"end_line":3440,"path":"k8s/devops/dashboards/devops-cli.json","start_line":3380})search_code({"text":"\"repeat\""})search_code({"text":"CONST_GRAFANA_SCHEMA_VERSION"})search_code({"text":"apiversion\" not in"})search_code({"text":"schema_version"})read_file({"path":"tests/prometheus/test_k8s_monitoring_dashboards.py","start_line":690,"end_line":740})read_spec({"capability":"command-telemetry","requirement":"The devops-cli dashboards lists each sub-command of its series in one table"})file_symbols({"path":"src/devops_cli/grafana/linter.py"})read_spec({"capability":"command-telemetry","requirement":"The devops-cli dashboard lists each sub-command of its series in one table"})read_issue({"number":4707})find_issues({"terms":"devops-cli dashboard"})search_code({"text":"The row \"Sub-commands\" SHALL hold one table"})read_issue({"number":5278})read_issue({"number":2700})search_code({"text":"dashboard.grafana.app"})search_code({"text":"\"apiVersion\":"})read_file({"path":"tests/grafana/test_grafana_dashboards.py","start_line":1100,"end_line":1180})read_file({"path":"k8s/devops/dashboards/devops-cli.json","start_line":3405,"end_line":3430})read_file({"path":"openspec/changes/archive/2026-10-29-2700-sub-command-dashboard/proposal.md","start_line":30,"end_line":45})read_file({"path":"openspec/specs/command-telemetry/spec.md","start_line":190,"end_line":215})search_code({"text":"\"schemaVersion\": 42"})search_code({"text":"_PRODUCT_DASHBOARDS ="})search_code({"text":"CONST_GRAFANA_SCHEMA_VERSION"})search_code({"text":"\"repeat\""})search_code({"text":"schemaVersion"})search_code({"text":"def dashboards_lint"})find_issues({"terms":"devops-cli dashboard schemaVersion"})read_issue({"number":4707})read_issue({"number":2700})find_issues({"terms":"devops-cli.json dashboard"})search_code({"text":"\"apiVersion\":"})search_code({"text":"dashboard.grafana.app"})search_code({"text":"schemaVersion"})search_code({"text":"schema_version"})search_code({"text":"def ci_test"})search_code({"text":"devops ci test"})Tool calls: file_symbols=1 (empty=0), find_issues=4 (empty=1), list_files=5 (empty=0), read_file=17 (empty=0), read_issue=7 (empty=0), read_spec=3 (empty=0), search_code=48 (empty=3)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
devops-cli-service commentedon Nov 14, 2026
The runner Job devops-cli-runner-20261114-021622-4407 ended: succeeded.
Image digest: sha256:393d04a07a0962a6e3a13174e6fca704b3a020f52570d1ef80cb8770a6322db9
The last lines of its log:
Failure class:
ci_infra.Action taken: none.
Action left:
retry: run the item again.The Job left this item without a result. The item is Blocked. When a retry can fix the class of the stop, the Service starts a new Job in the next round. The limit is
roadmap.implement.continuations_per_item, and the comment of that round says so. If no continuation is left, fix the cause. Then commentimplement: retry. A new runner image also clears the stop. This holds only if a retry can fix the class of the stop. The limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemmust also allow it.devops-cli-service commentedon Nov 14, 2026
Cleared the stop at job by the rule
continue: the runner Job devops-cli-runner-20261114-021622-4407 ended without a result. The classci_infraof the stop is one that a new attempt can fix. This is continuation 1 of 4 for this item. The item is Ready again. The Service takes it in the next round. The new Job takes the branch fromorigin, so it keeps the work that the run pushed there.dan-petty commentedon Nov 14, 2026
Closed as not planned. PR #5194 (#4707, merged 2026-11-12) removed the repeated panel
Telemetry: $sub_command: the rowSub-commandsonmainholds one table with no repeat key, andtests/grafana/test_grafana_dashboards.py::test_cli_dashboard_shows_the_selected_sub_commands_in_one_tableguards it. The owner comment of 2026-11-12 says that this issue closes as not planned when #5194 merges. The plan PR #5598 is closed without a merge (vet comment on #5598).