Skip to content

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

Merged
dan-petty merged 3 commits into
mainfrom
fix/4707-make-the-github-and-command-panels
Nov 12, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/4707-make-the-github-and-command-panels

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The first row of devops-cli.json now shows the golden signals of the devops commands, in the order of the SRE book: latency of the successful calls, calls per hour, error share and the use of the Service GitHub budget. They read the sub-command histogram, which has the label status. The commands and sub-commands are sorted tables over the range, and each row links to the golden signals of that command. No panel repeats (#2703).

The GitHub requests are hourly bars that add up to the total, with the free answers 304 and the budget limit apart. Throttles are counted once over the range. Each panel has one unit, a description and a title that names the signal. The dashboard opens on 24 h.

A test checks these rules outside the Service rows (#4718). The query harness adds up bars within 1 %.

Closes #4707

Change: openspec/changes/archive/2026-11-12-4707-make-the-github-and-command-panels/

Plan #4707 as an OpenSpec change. Add the cases of the golden signals,
the command tables, the GitHub requests and the throttles to the query
harness. A case with `bars` adds up the bars of its panel over a range,
and its expected sum must be within 1 % of `total`.

Add a test of the chart rules for each panel of devops-cli.json outside
the Service rows: one unit and one y axis, no repeat, a description, a
title "Signal: measure", no count on a duration axis, `or vector(0)`
only in a stat, and time series windows that follow the step.
The first row of devops-cli.json is the golden signals of the devops
commands: latency of the successful calls, calls per hour, error share
and the use of the Service GitHub budget. They read the sub-command
histogram, which has the label `status`, for the selected job, command
and sub-command.

The commands and the sub-commands are sorted tables over the range, with
a link that sets `var-command` or `var-sub_command`. No panel repeats.
The GitHub requests are hourly bars of the requests that cost quota, with
the answers 304 and the budget apart. The throttles are a stat and a
table over the range. Reviews, findings and RAG are tables and bar
gauges. Each panel has one unit, a description and a title that names
the signal and the measure. The dashboard opens on 24 h and refreshes
each minute. The error stream shows only error records.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Checks run on the branch before the push (2026-11-12):

  • uv run devops ci --check --only lint,format,typecheck,docs,openspec: pass (mypy strict pass).
  • uv run pytest tests/prometheus tests/design tests/grafana tests/telemetry/test_telemetry_instruments.py tests/commands/k8s/test_stack_dashboards.py: 475 passed. uv run devops ci test --repeat 3 on the 4 changed test files: 186 passed.
  • uv run devops grafana dashboards lint k8s/monitoring/dashboards: 0 errors.
  • Red first: before the dashboard change, the new harness cases failed with 0 targets, not 1, and the chart rule test listed the problems of the old panels.

Live checks (Prometheus and Grafana 13.3.1):

  • Core bars of roadmap-service at 2026-11-12T19:00Z: 47,591; sum(increase(devops_cli_github_requests_total{job="roadmap-service", resource="core", status!="304"}[24h])): 47,796 (0.4 %, limit 3 %).
  • /api/ds/query: the latency target runs as [1h0m0s] at a step of 15m; the traffic target as [1h] at a step of 1h, 25 points over 24 h.
  • A preview copy saved in Grafana with no error, and was deleted. The image renderer is not installed (feat(grafana): enable the image renderer for panel checks #5185), so no panel image was checked.

Follow-up: #5192 sends the sub-command point of a group body such as devops ci; #4718 applies the rules to the Service rows; #4743 moves the window rules into the linter; #4762 owns the colors. After the merge, #2703 closes as not planned.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 19:28
@dan-petty
dan-petty merged commit e99810e into main Nov 12, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/4707-make-the-github-and-command-panels branch November 12, 2026 19:42
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.123.0](v0.122.0...v0.123.0)
(2026-11-12)


### Features

* **infra:** plan a playbook of an infra repo in check mode
([#5196](#5196))
([050a6ef](050a6ef))
* **monitoring:** enable the image renderer for panel checks
([#5193](#5193))
([e413c40](e413c40))


### Bug Fixes

* **monitoring:** make the GitHub and command panels readable
([#5194](#5194))
([e99810e](e99810e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant