Repository navigation
Description
The devops dashboard has tabs for Kubernetes, Docker, Telemetry, Valkey and Logs. They hold about 3,100 lines of Python in src/devops_cli/ui/ and its tests. The owner decided on 2026-10-22 that the direction to replace custom code with open tools also covers these tabs. gh-dash replaces the GitHub tab. The review of gh-dash and tuicr did not look at the other tabs.
Task: audit each tab against the open terminal tools that do the same job, with the evidence and the cost. Candidates to test: k9s for Kubernetes, lazydocker for Docker, and Grafana with the existing dashboards for telemetry. Look for tools for Valkey and for log viewing as well. For each tab, state what the tab does that the open tool does not, the lines that a replacement deletes, the pin and the config to ship, the GitHub or cluster request cost, and the person-run steps.
Existing tool considered: the open tools above. Keeping the tabs costs maintenance in ui/ and its tests, and each defect found there needs a fix.
Output: a written audit in the task file, one follow-up issue for each tab that an open tool can replace, and no code change in this issue.
Acceptance criteria:
- The task file has one section for each of the five tabs with the evidence.
- Each tab that an open tool can replace has a follow-up issue.
- Each tab that stays has a written reason.
Alternatives check of 2026-11-01: not-applicable.
Tool: none found.
Proposed design
Problem statement
The devops dashboard keeps five tabs - Kubernetes, Docker, Telemetry, Valkey and Logs - in about 3,100 lines of Python in src/devops_cli/ui/ and its tests. The owner decided on 2026-10-22 that the direction to replace custom code with open tools covers these tabs. No audit compares these tabs with the open tools that do the same job. This issue writes that audit, records the cost of each replacement, and files one follow-up issue for each tab that an open tool can replace.
Acceptance criteria
Requirement: Audit section for each tab
The change's design document SHALL hold one section for each of the Kubernetes, Docker, Telemetry, Valkey and Logs tabs.
Scenario: Five tab sections
- WHEN A reader opens design.md in the change folder of issue 1885
- THEN It holds five sections, titled Kubernetes, Docker, Telemetry, Valkey and Logs.
Requirement: Gap between the tab and the tool
Each tab section SHALL state each function of the tab that the open tool does not cover.
Scenario: Kubernetes gap
- WHEN A reader reads the Kubernetes section
- THEN It names k9s v0.51.0 and states each function of the Kubernetes tab that k9s does not cover.
Requirement: Cost of a replacement
Each tab section that names a replacement SHALL state the lines the replacement deletes, the pin and config to ship, the request cost and the person-run steps.
Scenario: Kubernetes cost
- WHEN A reader reads the Kubernetes section
- THEN It states the deleted file and line ranges, the k9s pin and config, the cluster request count from the k9s source, and the person-run steps that confirm it.
Requirement: Follow-up issue for each replaceable tab
Each tab that the audit finds an open tool can replace SHALL have one follow-up issue that links issue 1885.
Scenario: Follow-up issue exists
- WHEN The audit marks a tab as replaceable
- THEN An open GitHub issue with a Conventional Commit title holds that tab's evidence and links issue 1885.
Requirement: Reason for each tab that stays
Each tab that the audit finds no open tool can replace SHALL have a written reason in its section.
Scenario: Tab that stays
- WHEN The audit marks a tab as staying
- THEN Its section states why the tab stays and each function that no open tool covers.
Requirement: No UI code change
The pull request SHALL change no file under src/devops_cli/ui/.
Scenario: Diff of the pull request
- WHEN A reviewer reads the diff of the pull request
- THEN The diff holds no file under src/devops_cli/ui/.
Existing Tool Considered
The alternatives check of 2026-11-01 returned not-applicable for the refactor type and named no tool, so the audit itself records each comparison. k9s v0.51.0, pinned in src/devops_cli/tools_lock/tools.lock and installed by post-create, covers the Kubernetes tab; it shows the logs of one pod and does not query Loki. Grafana, already deployed by devops k8s deploy-stack --stack infra with Prometheus, Alloy, the OTel Collector and Tempo, covers the Telemetry tab; it is a web UI and needs a browser. Grafana's Loki datasource, deployed by devops k8s deploy-stack --stack logging, covers the Logs tab. valkey-cli from valkey-tools covers the Valkey tab; it has no full-screen view. lazydocker (github.com/jesseduffield/lazydocker) is the open terminal tool to test for the Docker tab; the repository pins it nowhere yet.
Key questions
- Which open tool covers the Kubernetes tab, and at which pin?: k9s v0.51.0. The tools lock pins its four platform builds by SHA-256, and
devops install-toolsinstalls it in post-create. [sources: src/devops_cli/tools_lock/tools.lock, docs/DEVCONTAINER_USAGE.md] - Which tool does the audit test for the Docker tab?: lazydocker. The audit records its version, its licence, its last release, the lines it deletes, the request cost and the person-run steps, with the docker CLI as the fallback. (best practice) [sources: https://github.com/jesseduffield/lazydocker]
- Chosen: lazydocker. It is an open terminal UI for Docker and matches the terminal use of the tab.
- Rejected: docker CLI. It has no continuous view of containers, images and volumes.
- Rejected: Portainer. It is a web server and a browser UI, not a terminal tool, and adds a service to run.
- Which tool covers the Telemetry tab?: Grafana, which
devops k8s deploy-stack --stack infraalready deploys with Prometheus, Alloy, the OTel Collector and Tempo. The audit compares each panel of the tab with the deployed dashboards. (best practice) [sources: docs/DEVCONTAINER_USAGE.md]- Chosen: Grafana with the deployed dashboards. It is already deployed by the infra stack and holds the same metrics.
- Rejected: Keep the custom Telemetry tab. It keeps the maintenance that the owner decision of 2026-10-22 removes.
- Which tool covers the Logs tab?: Grafana's Loki datasource, which
devops k8s deploy-stack --stack loggingdeploys and the infra stack's Alloy feeds. k9s v0.51.0 stays the tool for the logs of one pod. (best practice) [sources: docs/DEVCONTAINER_USAGE.md, src/devops_cli/tools_lock/tools.lock]- Chosen: Grafana Loki datasource. Loki is deployed and holds the logs that Alloy ships.
- Rejected: k9s pod log view alone. It shows the log of one pod and does not query Loki.
- Which tool covers the Valkey tab?:
valkey-clifrom thevalkey-toolspackage, the Valkey project's own client. The audit tests it and searches for a terminal UI, and states a reason if the tab stays. (best practice) [sources: docs/DEVCONTAINER_USAGE.md]- Chosen: valkey-cli from valkey-tools. It is the Valkey project's own client, and the image example installs valkey-tools.
- Rejected: Keep the custom Valkey tab. It keeps the maintenance that the owner decision of 2026-10-22 removes.
- Where does the audit live?: In design.md of the change folder
openspec/changes/-/, with one section per tab. tasks.md holds the steps and links to each section. (best practice) [sources: CONTEXT.md]- Chosen: design.md in the change folder. The change holds its design, and the audit is the design record of which tab to replace.
- Rejected: tasks.md in the change folder. tasks.md holds the checklist of steps, not the evidence.
- Rejected: A page under docs/. The audit belongs to this change and is not a standing document.
- What shape does each follow-up issue take?: One issue for each replaceable tab, titled
refactor(ui): remove the tab in favour of, with the evidence of its section and a link to issue 1885. (best practice) [sources: CONTEXT.md]- Chosen: One issue per tab. An item is delivered by one pull request, and each tab removal is one item.
- Rejected: One issue for all tabs. It puts five removals in one pull request.
- Rejected: Sub-issues of issue 1885. Issue 1885 delivers the audit itself, not the tab removals.
- Does a roadmap job read or write the project board?: No. Labels hold Status, Priority, Value and Effort, and no roadmap job reads or writes the project board. A follow-up issue is an open GitHub issue that links issue 1885, not a board item. [sources: docs/adr/0001-github-is-the-roadmap-source.md, CONTEXT.md]
- Can the implement runner measure the cluster request cost on a live cluster?: No. The runner pod has no Kubernetes token, so the audit derives the request count from the tool's source and lists the person-run steps that confirm it, as docs/DEVCONTAINER_USAGE.md does for gh-dash. [sources: CONTEXT.md, docs/DEVCONTAINER_USAGE.md]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 22, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate proposes to refactor UI tabs by auditing them against open tools, which is a refactor task.The task involves replacing custom code with open tools and is part of a broader initiative to modernize the UI.Replacing custom tabs with open tools improves maintainability and user experience, but the impact is moderate.The task requires auditing each tab, identifying suitable open tools, and documenting the findings in detail.dan-petty commentedon Oct 25, 2026
Audit: the Kubernetes and Logs tabs (2026-10-25)
The owner accepted k9s for the Kubernetes functions of the dashboard. This is the section of this audit for the Kubernetes tab and the Logs tab, which serves only pods. Result: k9s can replace both tabs.
devops roadmap intakedid not file the deletion as a follow-up item. It found the candidate a duplicate of this issue ("both ask to delete the dashboard Kubernetes and Logs tabs"). So the deletion below stays in the scope of this issue until a person files it as a separate item. #807 and #809 are closed as not planned because k9s covers them. #808 and #811 lose their tab, and a person decides them.The Docker, Telemetry and Valkey tabs are not audited yet.
Evidence
What the tabs do, and what k9s v0.51.0 does in their place:
k9s -A -c pods:ns/filter by namespace, name or status/(regex),/-l <selector>(labels)e: the events of a pod (ui/pod_inspector.py)d(describe; the events are at the end)lon a pod;Enteropens its containers:nodes, with CPU and memory use and the GPU columnsr: refreshsrc/devops_cli/tools_lock/tools.lockwith a SHA-256 for each platform.devops install-toolsand the devcontainer post-create install it (docs/DEVCONTAINER_USAGE.md).k9s --helpof v0.51.0 has-A,-c,--contextand--readonly.GPU/AandGPU/Cfornvidia.com/gpuandamd.com/gpu(stringsof the binary, 2026-10-25).pod_log_source(ui/dashboard.py:308), and its title is "Select a pod on the Kubernetes tab" (ui/dashboard.py:213).KubernetesService.read_pod_logs(commands/argo.py,commands/k8s/cluster_context.py),PodInfo(k8s/informer.py,output/formatters/tables.py) andk8s/service_http.py(the Telemetry and Valkey tabs).What the tabs do that k9s does not:
devops dashboard --summaryprints the pods, unhealthy pods first, without a full-screen interface.kubectl get pods -Agives the same data.Request cost:
--refresh-interval) sends one LIST of every pod in all namespaces and one LIST of every node (fetch_k8s_statusand_node_readinessinui/data_providers.py).metrics.k8s.ioat its refresh rate (refreshRate, default 2 seconds). It sends nothing when it does not run.Proposed remedy
Delete the two tabs and everything that only they use. The lists come from function and class names on
origin/main1bb164b. Check the users of each name with grep when you write the change.Source:
ui/log_buffer.py(186 lines) andui/pod_inspector.py(114 lines), the whole files.ui/widgets.py:K8sPanelandLogPane(about 410 lines), their__all__entries and their imports.ui/projections.py:_k8s_nodes,k8s_banner,k8s_filter_banner,k8s_pod_row,k8s_rows,k8s_identities,pod_matches,filter_pods,namespace_choices,pod_container_names,pod_container_rowsandpod_event_rows(about 80 lines), and their registry entries.ui/data_providers.py:K8sSummary,_get_k8s_client,_in_a_pod,_kubeconfig_context,_k8s_context_name,_node_readiness,fetch_k8s_statusandfetch_pod_events(about 90 lines).ui/refresh.py:PodLogSource,pod_log_sourceand the Kubernetes provider entry (about 50 lines).ui/dashboard.py:_tail,action_next_container, the LogsTabPane, thelbinding, theK8sPanelentry of_PANELS, the pod handler ofon_data_table_row_selectedand the pod lines of the help screen.commands/dashboard.py:_render_k8s_paneland its call from--summary.config/constants.py:3093-3142:CONST_DASHBOARD_DOMAIN_K8S, its entries in the domain list, the labels and the tab focus, andCONST_LOGS_TAB_ID.config/defaults.py:765-767:DEFAULT_K8S_POD_EVENT_LIMITandDEFAULT_DASHBOARD_SUMMARY_POD_ROWS.lang/en/help.py:1606and the--tabdefault: the first tab becomes Docker, and the help becomes(1=docker, 2=telemetry, 3=valkey).tests/fixtures/swallowed_failures_ceilings.json: lower the ceiling of each changed module to what stays.Tests: delete the pod, log and inspector tests in
tests/test_ui_reactive.py(63 functions by name, about 980 lines) andtests/test_ui_dashboard.py(7 functions, about 120 lines). Keep thePodInfotests intests/test_k8s_models.py.Docs:
devops docs generate --sync-readmerefreshesdocs/commands/dashboard.md,docs/commands/tui.mdanddocs/CLI_REFERENCE.md. Indocs/DEVCONTAINER_USAGE.md, say that k9s replaces the Kubernetes and Logs tabs.What it deletes
About 890 source lines and about 1,100 test lines (counted by function and class names; count the exact set in the change), and the 5-second poll of the cluster.
Pin and config to ship
None. k9s v0.51.0 is already in
tools.lock. k9s reads the kubeconfig contexts thatdevops k8suses. Its defaults show what the tabs show, so no k9s config is shipped.Person-run steps
None to install. To look at the cluster with no risk of a change, start k9s with
--readonly.Existing Tool Considered
k9s (https://k9scli.io, Apache-2.0, maintained; v0.51.0 released 2026-06-06).
Cost (written)
The change deletes code, so it has no upkeep. It needs about half a day and about 30k to 50k tokens (estimate), most of it for the many small edits.
Acceptance criteria of the deletion
devops dashboardstarts on the Docker tab and has no Kubernetes tab and no Logs tab.devops dashboard --summaryprints no Kubernetes panel and sends no request to a cluster.src/devops_cli/ui/imports thekubernetespackage,devops_cli.k8s.serviceordevops_cli.k8s.context.devops docs checkpasses.fix(roadmap): intake files and places a candidate that the model judg…
dan-petty commentedon Oct 28, 2026
Refine cannot set this item to Ready at bb46660 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 1, 2026
Alternatives check: not-applicable
Tool: none found
Checked on 2026-11-01. A person decides what this means for the item. The check changes no label and closes no issue.
2 remaining items
devops-cli-service commentedon Nov 5, 2026
Status set to Ready at d254410 (see proposed design in issue body).
[-]refactor(ui): audit the Kubernetes, Docker, Telemetry, Valkey and Logs dashboard tabs against open tools[/-][+]refactor(ui): audit five dashboard tabs against open tools[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 90 characters, and the limit is 60. The type and the scope stay.
refactor(ui): audit the Kubernetes, Docker, Telemetry, Valkey and Logs dashboard tabs against open toolsrefactor(ui): audit five dashboard tabs against open toolsdevops-cli-service commentedon Nov 7, 2026
Staged: branch
refactor/1885-audit-five-dashboard-tabs-against-open, draft pull request #3928. 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:
The runs of the planner and the review made 39 model request(s), and used 2409868 input tokens and 69597 output tokens. The tool calls, in order:
list_files({"directory":""})list_files({"directory":"src/devops_cli/ui"})list_files({"directory":"docs"})list_files({"directory":"tests/ui"})search_code({"text":"Valkey"})search_code({"text":"TabbedContent"})list_files({"directory":"openspec/changes"})file_symbols({"path":"src/devops_cli/ui/dashboard.py"})list_files({"directory":"docs/roadmap"})search_code({"text":"uv run devops ci docs"})search_code({"text":"gh issue create"})read_file({"path":"docs/index.md"})list_files({"directory":"docs/adr"})find_issues({"terms":"dashboard tabs k9s lazydocker"})file_symbols({"path":"src/devops_cli/ui/widgets.py"})search_code({"text":"devops dashboard"})search_code({"text":"follow-up issue"})search_code({"text":"devops gh issues create"})read_file({"path":"docs/roadmap/stage.md","start_line":1,"end_line":80})read_file({"path":"docs/commands/dashboard.md"})search_code({"text":"pending-person"})read_file({"path":"docs/roadmap/plan-check.md","start_line":1,"end_line":120})references({"name":"k9s"})references({"name":"lazydocker"})references({"name":"valkey-cli"})read_file({"path":".devops/survey.toml"})read_spec({"capability":"survey"})search_code({"text":"def docs"})search_code({"text":"ci docs"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":2215,"end_line":2290})search_code({"text":"docs/index.md"})search_code({"text":"CONST_DOCS_INVENTORY"})list_files({"directory":"tests/docs"})search_code({"text":"two links"})read_file({"path":"tests/invariants/test_agents_md_claims.py","start_line":300,"end_line":380})search_code({"text":"docs/VISION.md"})read_file({"path":"AGENTS.md","start_line":1,"end_line":70})list_files({"directory":"k8s"})search_code({"text":"deploy-stack"})file_symbols({"path":"src/devops_cli/ui/data_providers.py"})read_file({"path":"src/devops_cli/tools_lock/tools.lock","start_line":382,"end_line":396})list_files({"directory":"k8s/monitoring"})list_files({"directory":"k8s/logging"})read_file({"path":"k8s/README.md","start_line":78,"end_line":96})list_files({"directory":"k8s/monitoring/dashboards"})read_file({"path":"src/devops_cli/ui/dashboard.py","start_line":40,"end_line":80})read_file({"path":"src/devops_cli/ui/dashboard.py","start_line":200,"end_line":230})search_code({"text":"CONST_DASHBOARD_DOMAINS"})read_file({"end_line":60,"path":"README.md","start_line":28})read_file({"end_line":3880,"path":"src/devops_cli/config/constants.py","start_line":3862})list_files({"directory":"src/devops_cli/ui"})list_files({"directory":"tests/ui"})list_files({"directory":"k8s/monitoring"})list_files({"directory":"k8s/logging"})read_file({"path":"src/devops_cli/ui/dashboard.py","start_line":190,"end_line":240})search_code({"text":"CONST_DASHBOARD_DOMAINS"})search_code({"text":"lazydocker"})search_code({"text":"valkey-cli ping"})read_file({"end_line":3885,"path":"src/devops_cli/config/constants.py","start_line":3858})search_code({"text":"[binary.k9s]"})read_file({"end_line":80,"path":"README.md","start_line":1})read_file({"end_line":80,"path":"docs/index.md","start_line":1})read_file({"path":"tests/invariants/test_agents_md_claims.py","start_line":1,"end_line":80})search_code({"text":"two links"})search_code({"text":"def docs"})search_code({"text":"CONST_DOCS_INVENTORY"})read_file({"path":"src/devops_cli/docs/inventory.py"})read_file({"end_line":370,"path":"tests/invariants/test_agents_md_claims.py","start_line":300})search_code({"text":"(README.md)"})search_code({"text":"issues create"})read_file({"end_line":2250,"path":"src/devops_cli/commands/ci.py","start_line":2200})file_symbols({"path":"src/devops_cli/ui/widgets.py"})file_symbols({"path":"src/devops_cli/ui/data_providers.py"})list_files({"directory":"k8s/monitoring/dashboards"})find_issues({"terms":"dashboard tabs k9s lazydocker"})read_file({"end_line":400,"path":"src/devops_cli/tools_lock/tools.lock","start_line":380})read_file({"path":"k8s/monitoring/kustomization.yaml"})read_file({"path":"k8s/logging/kustomization.yaml"})search_code({"text":"grafana/grafana"})search_code({"text":"grafana-values.yaml"})search_code({"text":"HELM_RELEASES_BY_STACK"})search_code({"text":"grafana-community"})read_file({"path":"k8s/argocd/apps/grafana.yaml"})read_file({"end_line":510,"path":"src/devops_cli/config/constants.py","start_line":455})list_files({"directory":"docs"})search_code({"text":"lazydocker"})search_code({"text":"valkey-tools"})search_code({"text":"test_every_hand_written_and_generated_document_is_within_two_links_of_agents_md"})list_files({"directory":"tests/ui"})search_code({"text":"ci docs"})search_code({"text":"issues create"})search_code({"text":"[binary.k9s]"})read_file({"path":"src/devops_cli/docs/inventory.py"})read_file({"path":"tests/invariants/test_agents_md_claims.py","start_line":280,"end_line":400})read_file({"path":"docs/index.md"})list_files({"directory":"k8s/monitoring"})Tool calls: file_symbols=5 (empty=0), find_issues=2 (empty=0), list_files=20 (empty=0), read_file=30 (empty=0), read_spec=1 (empty=0), references=3 (empty=1), search_code=35 (empty=2)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
docs(openspec): name changed files in tasks of plan #1885
docs(openspec): plan #1885 Audit five dashboard tabs against open too…
refactor(ui): audit five dashboard tabs against open tools (#3984)
devops-cli-service commentedon Nov 7, 2026
Released in v0.81.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.81.0
devops-cli-service commentedon Nov 7, 2026
Live since 2026-11-07 15:32 UTC