Skip to content

fix(monitoring): make the GitHub and command panels readable #4707

Closed
1 of 1 issue completed
Closed

Description

@dan-petty

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.json
  • tests/fixtures/dashboard_queries/devops-cli.yaml
  • tests/prometheus/test_k8s_monitoring_dashboards.py

Dependencies

#4680, #4684.

Related

#2703 (closes as not planned after this item merges).

Source: #4675

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/bug
    scope/monitoring
    status/new
    value/medium
    effort/medium
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/monitoring. The (monitoring) scope of the title gives the scope.
    • Priority: P2-Medium. Panels are unreadable but the system still functions; no data loss or outage.
    • Value: Medium. Readability of monitoring panels affects operator trust and debugging speed.
    • Effort: Medium. Many panels change type and query, plus new test fixtures and assertions, but no new code is needed.
    • Related: feat(telemetry): Hide empty sub-command panels in devops-cli dashboard #2703, which asks for a different change. Both target the sub-command panel repeat in devops-cli.json, but #2703 hides empty panels while the candidate replaces the repeat with tables.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Owner direction, 2026-11-12. The owner finds the devops-cli dashboard hard to read, for 4 causes:

    1. Counts and durations use the same y axis (panels 3, 4, 11, 15 and 27).
    2. On a panel with many lines, one command uses most of the height. Live data for 24 h: gh 10,491 calls, ci 1,253, then 19 more commands under 1,000. The small lines lie on 0.
    3. The dashboard shows no error rate that a reader can use. Panel 12 draws one error-share line for each command, and panel 18 draws error counts.
    4. The SRE practice of docs/DESIGN.md (section "Grafana layout", rules C2, C4, C7 and C12) is not applied.

    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 h8 each:

    Signal Query source Unit Notes
    Latency p50, p95 and p99 of devops_cli_subcommand_duration_seconds{status="ok"} s Sequential steps 5, 7 and 9 (DESIGN.md C12 d).
    Traffic histogram_count of the same histogram, bars, panel interval 1h short Calls per hour.
    Errors error calls divided by all calls of the same histogram percentunit y starts at 0 (C5).
    Saturation devops_cli_service_budget_spent_requests divided by devops_cli_service_budget_limit_requests percentunit A 1 px dashed reference line at 100 % (C8, C14).

    Use the sub-command histogram for latency, traffic and errors, because it has the label status (ok or error). The command histogram devops_cli_command_duration_seconds has no status label, so it cannot give the latency of successful calls. The latency, traffic and errors panels filter on $job, $command and $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 with var-command (or var-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.

    • One unit for each panel. A count and a duration never share a y axis, and no override adds a second axis.
    • A time series has at most 3 series plus "Other" (C7). More entities go in a table or a sorted bar gauge.
    • The title names the signal and the measure (C2), for example "Latency: p95 of successful calls".
    • Each panel has a description that gives the measure, the window and the metric.

    Added acceptance criteria.

    • The dashboard test fails when a panel has targets of two units, or a field override that sets a second axis.
    • Harness cases for the 4 golden-signal panels: on a fixture with 100 calls and 7 errors, the error panel returns 0.07; the latency panel returns the fixture p95 of the ok calls only; the traffic bars add up to the fixture total within 1 %.
    • The first row of devops-cli.json holds 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.

  6. added
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 12, 2026
  7. added
    status/in-review
    and removed
    status/in-progress
    on Nov 12, 2026
  8. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  9. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 20:34 UTC

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

    effort/mediumpriority/p2-mediumscope/monitoringsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions