Repository navigation
Description
Problem or Motivation
devops-cli.json. Panel 22 draws a rolling [1h] at each 2 min step for the CLI and the Service together on one linear axis: core reaches 5,873 an hour while code_search is under 10, so the small lines lie on 0. It also counts 304 answers that cost no quota (26,148 of 66,377 Service attempts in 24 h, 39 %). Panels 23 and 24 draw rolling-hour bars: the throttle bars add up to 474 in 24 h for 21 throttles, and the wait bars to 765 s for 34.7 s. Panel 25 hides gaps with 'or vector(0)' and has no limit line. Panels 2, 11, 12, 18 and 27 draw 14 to 21 command lines, 70 to 105 latency lines, 59 to 126 sub-command lines, and a repeat of 47 to 90 panels (68 sub_command values in 24 h, 132 in 7 d). Panels 3, 4, 11, 15 and 27 put counts on a seconds or ms axis. Rare events are blocks of 30 bars or no data: findings 2 samples in 7 d, reviews 2, RAG queries 16 in 30 d, Qdrant retries 1 in 30 d. The default range is now-1h with a 10 s refresh, while an OTLP series gets about 4 samples an hour. Panel 20 'Error Stream' also shows warnings (5 error and 19 warn lines in 24 h).
Proposed Solution & Architectural Design
Panel 22 becomes two time series bar panels, panel interval 1h, round(sum by (job, resource) (increase(devops_cli_github_requests_total{job=~'$job', status!='304'}[$__interval]))): 'GitHub quota cost per hour (core)' with a line of devops_cli_service_budget_limit_requests, and 'Other GitHub resources per hour' for graphql, search, code_search and dependency_sbom. The 304 answers are a separate series 'free (304)'. No 'or vector(0)'. Panels 23 and 24 become a stat and a table, instant over $__range, of histogram_count and histogram_sum of increase(devops_cli_github_throttle_wait_seconds[$__range]) by resource. Panel 25: one bar series for each job, interval 1h, a threshold line at the hourly GraphQL point limit of the token. Panel 2: a sorted bar gauge, instant over $__range, and one total line. Panels 11, 12, 18 and 27: one table for commands and one for sub-commands (calls, errors, error share, p50, p95, p99), instant over $__range; the repeat of panel 27 goes. Panels 3, 4, 6, 7, 13, 14, 15 and 16: tables, bar gauges or stats, instant over $__range; 'or vector(0)' only in stats. Panel 26: [$__rate_interval] with Min step 15m. Dashboard default now-24h, refresh 1m. Panel 20: detected_level=~'error|critical|fatal'. This removes the repeat that #2703 tries to hide; after the merge, close #2703 as not planned with a link (no closing keyword in the pull request body).
Scope: queries, panel types, units, legends and defaults only. Keep the default Grafana colors. The project design study owns colors and type.
Target Subsystem
Kubernetes & Minikube Automation (Grafana dashboards and telemetry).
Existing Tool Considered
Built-in Grafana panel types (bar chart, bar gauge, table, stat) and PromQL. No new code.
Acceptance Criteria
- Harness cases (tests/fixtures/dashboard_queries/devops-cli.yaml) for panels 22, 23, 24, 2 and 11: for a sparse counter with a start zero and a sample every 15 min over 24 h, the hourly bars add up to the fixture total within 1 %; the throttle table returns the fixture throttle count; the 'free (304)' series holds only status 304.
- No time series target of devops-cli.json holds $__range, 'or vector(0)', a range window other than [$__interval] or [$__rate_interval], or a by() over command or sub_command.
- No panel has 'repeat'.
- No panel with unit s or ms holds a histogram_count target.
- Live at 24 h: the panel 22 core bars of the Service add up to within 3 % of sum(increase(devops_cli_github_requests_total{job='roadmap-service', resource='core', status!='304'}[24h])).
Files
k8s/monitoring/dashboards/devops-cli.jsontests/fixtures/dashboard_queries/devops-cli.yamltests/prometheus/test_k8s_monitoring_dashboards.py
Dependencies
Related
#2703 (closes as not planned after this item merges).
Source: #4675
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(monitoring)scope of the title gives the scope.Panels are unreadable but the system still functions; no data loss or outage.Readability of monitoring panels affects operator trust and debugging speed.Many panels change type and query, plus new test fixtures and assertions, but no new code is needed.Both target the sub-command panel repeat in devops-cli.json, but #2703 hides empty panels while the candidate replaces the repeat with tables.dan-petty commentedon Nov 12, 2026
Owner direction, 2026-11-12. The owner finds the devops-cli dashboard hard to read, for 4 causes:
gh10,491 calls,ci1,253, then 19 more commands under 1,000. The small lines lie on 0.This item keeps its scope and adds these changes to the same file and the same panels.
Golden signals row. The first row is "Golden signals: devops commands", in the order of the book,
w12 h8each:devops_cli_subcommand_duration_seconds{status="ok"}shistogram_countof the same histogram, bars, panel interval 1hshortpercentunitdevops_cli_service_budget_spent_requestsdivided bydevops_cli_service_budget_limit_requestspercentunitUse the sub-command histogram for latency, traffic and errors, because it has the label
status(ok or error). The command histogramdevops_cli_command_duration_secondshas no status label, so it cannot give the latency of successful calls. The latency, traffic and errors panels filter on$job,$commandand$sub_command; with "All" they show the sum of all commands. The saturation panel shows the Service budget until #4752 records the rate limit of each response.Breakdown by command. The command table and the sub-command table of this item (calls, errors, error share, p50, p95, p99, instant over
$__range) are sorted by errors, then by calls. Each row has a data link that opens this dashboard withvar-command(orvar-sub_command) set to the row, so the golden signals row shows that command over time. Per-command lines are not drawn: the existing criterion "no time series target has a by() over command or sub_command" stays.Rules for each panel.
Added acceptance criteria.
devops-cli.jsonholds the 4 golden-signal panels in the order latency, traffic, errors, saturation.#4718 applies the same 4 rules to the Service row: each section opens with its error ratio, and the per-repository and per-row lines become sorted tables or bar gauges.
devops-cli-service commentedon Nov 12, 2026
Released in v0.123.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.123.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 20:34 UTC