Repository navigation
Description
Update 2026-11-26 (infra move): the Grafana values are now in dan-petty/homelab.
- The plugin pin and the datasource provisioning are a follow-up issue there.
- The dashboard is
k8s/devops/dashboards/project-metrics.json. - This issue keeps the settings, the secret row, the dashboard queries and the removed gauges.
Follow-up: dan-petty/homelab#278.
Problem or Motivation
The project facts of project-metrics.json come from gauges that the metrics row of the Service writes as a side effect of a snapshot. The measured defects:
devops_cli_project_releasesis the length of the release list afterrelease_limit=10(src/devops_cli/github/metrics.py:802, 832, 846), so it is never above 10.git tag -l v*gives 274.devops_cli_project_release_interval_daysis a delta histogram (src/devops_cli/telemetry/instruments.py:609-614) that each snapshot of about 15 min observes again for the last 10 releases. Panel 3 gives 4.72 d with [24h] and 1.07 d with [7d] at one moment, with the warning 'conflicting counter resets during histogram aggregation'.- Intervals are rounded to 0.1 d (
metrics.py:310) and 0 is skipped (metrics.py:839-840, 955), so 6 of the 10 newest devops-cli intervals are lost (all under 72 min; v0.112.0 to v0.112.1 is 55 min). - The CI runs gauge labels the workflow with the run name (
metrics.py:360). A dynamic Dependabot run puts its run id in the name (Graph Update: uv in /. #<run id>, 15 of 29 values in 24 h), so panel 11 draws 58 lines in 24 h and 858 in 30 d. devops_cli_project_starsshows 1 while the GitHub API gives 2.- A gauge holds only the value at the time of a snapshot. It has no history from before the first snapshot.
Owner decision of 2026-11-11: these facts come from the Grafana GitHub data source plugin, authenticated as a new read-only GitHub App that the owner creates. The plan item "fix(telemetry): correct the release and CI run gauges" is not filed, because this item removes those gauges.
Proposed Solution & Architectural Design
Person step (the owner). Create a GitHub App on the personal account and install it on the repositories of service.repos:
- Repository permissions, all read-only: Actions, Contents, Issues, Metadata and Pull requests.
- No other permission and no write permission.
- No webhook: clear 'Active' in the webhook section.
- Store the App ID, the installation ID and the private key in the keyring with
devops config set --from-file, under the credential names that the pull request gives.
This item waits for the App. The agent work:
- Check the premise first: with the App, the plugin answers the Releases, Commits, Pull_Requests, Workflow_Runs, Milestones, Stargazers and Repositories queries for the devops-cli repository. Record the result in the proposal Feasibility section.
- Register the keyring entries in
src/devops_cli/k8s/cluster_secrets.pyas one Secret in themonitoringnamespace, sodevops k8s push-secretsmakes it. The Service App key is not copied. - Pin
grafana-github-datasourcein thepluginslist ofk8s/monitoring/grafana-values.yamlof dan-petty/homelab (follow-up issue) at v2.10.0 or later, at a version released at least two weeks before the pull request (v2.10.0 qualifies from 2026-11-17). - Provision the data source in
grafana-values.yamlwithselectedAuthTypegithub-app and${ENV}values from the Secret. The provisioning file holds no secret value. - Rewrite panels 2, 3, 4 and 5 (Releases), 7 and 8 (Commits and merged Pull_Requests per release), 10 and 11 (Workflow_Runs by workflow and conclusion), 13 (Issues by milestone) and 18 (Stargazers and Repositories) on the data source. Keep the panel shapes and the repo variable of fix(monitoring): show one repository at a time in Project Velocity #4712. If no built-in transformation groups commits and pull requests by release, record that in the proposal and keep those two gauges.
- Check the API cost of each panel at the 5-minute plugin cache. A 30 d Workflow_Runs query pages through about 2,000 runs a day; limit its range or its page count.
- Remove the gauges that the new panels replace (
devops_cli_project_releases,devops_cli_project_release_interval_days,devops_cli_project_stars,devops_cli_project_forks,devops_cli_project_ci_runs, and the commit, pull request and item-by-release gauges where their panels move), their emitters, the workflow run and milestone reads of the metrics row, and their docs, in the same pull request (no shim). Panels 14 (items by state), 24 (item age), 16 to 20 (traffic) and 22 and 23 (upstream status) stay on Prometheus.
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 data sources, cluster secrets).
Existing Tool Considered
The Grafana GitHub data source plugin (grafana-github-datasource, Grafana Labs, Apache-2.0, v2.10.0 of 2026-11-03) is the open tool; it supports GitHub App authentication, alerting and a 5-minute response cache. It has no traffic query, so the traffic row keeps the devops-cli emitter. Rejected: githubexporter/github-exporter (stars, forks and release gauges only, and its App mode needs a write-capable key); promhippie/github_exporter workflow collectors (a label for each run, about 1,500 new series a day); the OpenTelemetry Collector GitHub receiver (owner decision 4: it needs a second public webhook path outside the ADR 0009 router). No new code beyond provisioning and panels.
Acceptance Criteria
- Panel 2 shows the count of all releases of the selected repository (today 274 tags; the gauge shows at most 10).
- Panel 5 shows each interval from the release dates with no rounding, also the intervals under 72 min (v0.112.0 to v0.112.1 is 55 min).
- Panel 11 shows one row for each workflow, with no run id in a workflow value.
- Panel 18 equals
stargazers_countandforks_countof the GitHub API. - A test shows that the data source provisioning holds only
${ENV}references for the App values, and that the plugin pin is an exact version. - A test shows that the new
cluster_secrets.pyentry makes one Secret in themonitoringnamespace from the keyring entries. git grepof each removed metric name returns nothing insrc,k8sanddocs.- Live: a 30 d load of the dashboard uses less than 5 % of the hourly limit of the read-only App.
Files
k8s/monitoring/grafana-values.yaml(dan-petty/homelab)k8s/devops/dashboards/project-metrics.jsonsrc/devops_cli/k8s/cluster_secrets.pysrc/devops_cli/github/metrics.pysrc/devops_cli/telemetry/instruments.pydocs/TELEMETRY.mdtests/github/test_github_metrics.pytests/prometheus/test_k8s_monitoring_dashboards.py
Dependencies
The owner creates the read-only App (person step). #4712 (same dashboard, the repo variable).
Related
#3941 (the metrics row reads), #4597 (Infinity data source for the Service API).
Source: #4675
Alternatives check of 2026-11-29: covers.
Tool: grafana/github-datasource (https://github.com/grafana/github-datasource), Apache-2.0, last activity 2026-11-27, maintained.
Reason: The issue itself names grafana/github-datasource as the chosen solution, and the plugin's README confirms it queries the GitHub API over GraphQL with a 5-minute cache, covering releases, workflow runs, stargazers and repository facts. Only traffic facts stay on the existing emitter.
Covers:
- Releases and release dates for count and interval panels
- Workflow runs grouped by workflow name and conclusion
- Stargazers and repository counts from the GitHub API
- Read-only GitHub App authentication with no user login
Lacks:
- No traffic query, so traffic panels stay on the devops-cli emitter
- No dashboard linter support for plugin targets today
- Aggressive 5-minute cache and no facts before the first query
- No roadmap item, item-age, inbox or upstream-status facts
Proposed design
Problem statement
The project metrics dashboard reads wrong facts from Prometheus gauges. The release count caps at 10. The interval histogram rounds and drops short intervals. The CI gauge labels runs by dynamic run names. The stars gauge can be stale.
This change reads releases, workflow runs, stargazers and repositories with grafana/github-datasource, authenticated by a read-only GitHub App. It rewrites panels 2, 3, 4, 5, 10, 11 and 18, declares the three App credentials, adds the monitoring/grafana-github-app Secret row, teaches the dashboard linter the plugin targets and the Workflow_Runs cost bound, and removes the five replaced gauges. The plugin pin and the data source provisioning are in dan-petty/homelab#278.
Acceptance criteria
Requirement: Release panels read GitHub Releases
Panels 2, 3, 4 and 5 SHALL query the Releases type of grafana-github-datasource and SHALL NOT query devops_cli_project_releases or devops_cli_project_release_interval_days.
Scenario: The dashboards lint accepts the release panels
- WHEN
uv run devops grafana dashboards lint k8s/devops/dashboardsruns on the change. - THEN The command exits 0 and reports 0 error(s) for
k8s/devops/dashboards/project-metrics.json.
Requirement: CI panels read Workflow Runs
Panels 10 and 11 SHALL query the Workflow_Runs type of grafana-github-datasource, panel 11 SHALL group runs by workflow name and conclusion, and the panels SHALL NOT query devops_cli_project_ci_runs.
Scenario: The dashboards lint accepts the CI panels
- WHEN
uv run devops grafana dashboards lint k8s/devops/dashboardsruns on the change. - THEN The command exits 0 and reports 0 error(s) for
k8s/devops/dashboards/project-metrics.json.
Requirement: Repository facts panel reads the GitHub API
Panel 18 SHALL query the Stargazers and Repositories types of grafana-github-datasource and SHALL NOT query devops_cli_project_stars or devops_cli_project_forks.
Scenario: The dashboards lint accepts the repository facts panel
- WHEN
uv run devops grafana dashboards lint k8s/devops/dashboardsruns on the change. - THEN The command exits 0 and reports 0 error(s) for
k8s/devops/dashboards/project-metrics.json.
Requirement: Kept Prometheus panels stay on Prometheus
Panels 7, 13, 14, 16, 17, 19, 20, 22, 23, 24 and 25 SHALL keep Prometheus targets that pass the PromQL validation.
Scenario: The dashboards lint accepts the kept panels
- WHEN
uv run devops grafana dashboards lint k8s/devops/dashboardsruns on the change. - THEN The command exits 0 and reports 0 error(s) for
k8s/devops/dashboards/project-metrics.json.
Requirement: Workflow runs query cost bound
Panel 11 SHALL set options.limit to 10 or less, or a timeFrom of 7 days or less, on its Workflow_Runs target.
Scenario: The dashboards lint accepts the bounded CI panel
- WHEN
uv run devops grafana dashboards lint k8s/devops/dashboardsruns on the change. - THEN The command exits 0 and reports 0 error(s) for
k8s/devops/dashboards/project-metrics.json.
Requirement: Dashboards lint accepts GitHub data source targets
devops grafana dashboards lint SHALL read the queryType of a target of grafana-github-datasource and SHALL report no empty query for it.
Scenario: A GitHub data source target has a query type
- WHEN The test lints a dashboard with a target whose datasource is
grafana-github-datasourceand whosequeryTypeisReleases. - THEN The report has no error and no warning that the target has an empty query.
Requirement: Dashboards lint rejects an unbounded Workflow_Runs target
devops grafana dashboards lint SHALL report an error for a Workflow_Runs target of grafana-github-datasource whose options.limit is more than 10 and whose panel sets no timeFrom of 7 days or less.
Scenario: A Workflow_Runs target over the bound is an error
- WHEN The test lints a dashboard with a
Workflow_Runstarget whoseoptions.limitis20and whose panel sets notimeFrom. - THEN The report has an error that names the panel and the bound.
Requirement: Removed project gauges leave the code, dashboards and docs
The five removed project gauge names SHALL have no occurrence in src, k8s, docs, openspec/specs and tests/fixtures/dashboard_queries.
Scenario: The removed gauge names are absent
- WHEN
! git grep -n -I -F -e devops_cli_project_releases -e devops_cli_project_release_interval_days -e devops_cli_project_stars -e devops_cli_project_forks -e devops_cli_project_ci_runs -- src k8s docs openspec/specs tests/fixtures/dashboard_queriesruns. - THEN The command exits 0 and prints no match.
Requirement: Removed project gauges leave the instruments
INSTRUMENTS SHALL NOT declare the five removed project gauges.
Scenario: The removed instruments are absent
- WHEN The test imports
INSTRUMENTSfromsrc/devops_cli/telemetry/instruments.py. - THEN The test finds no instrument with one of the five removed gauge names.
Requirement: The emitters send no removed series
emit_project_metrics_telemetry SHALL send no point for the five removed gauge names.
Scenario: A report sends the kept series only
- WHEN The test calls
emit_project_metrics_telemetrywith a report and a fake OTLP exporter. - THEN The exporter holds no point for the five removed gauge names and holds points for the commits, pull requests, items, traffic and age gauges.
Requirement: Metrics collection flags skip reads
collect_project_metrics_report SHALL accept workflow_runs and milestones flags that default to True.
Scenario: The flags skip the two reads
- WHEN The test calls
collect_project_metrics_reportwith both flags asFalseagainst a fake GitHub and then with no flags. - THEN The fake GitHub records no request to
actions/runsormilestonesfor the first call and records both requests for the second call.
Requirement: Service row passes the skip flags
_run_metrics_adapter SHALL pass workflow_runs=False and milestones=False to collect_project_metrics_report.
Scenario: The Service row passes the skip flags
- WHEN The test runs
_run_metrics_adapterover the in-memory store and a fake GitHub session. - THEN The fake session records no request to
actions/runsormilestones.
Requirement: The monitoring Secret row reads the App keyring entries
CLUSTER_SECRETS SHALL hold an optional row named monitoring/grafana-github-app that reads the credentials grafana.github_app_id, grafana.github_app_installation_id and grafana.github_app_private_key, and writes one Secret in the monitoring namespace when the three keyring entries hold values.
Scenario: The monitoring Secret row holds the three App keys
- WHEN The test imports
CLUSTER_SECRETSfromsrc/devops_cli/k8s/cluster_secrets.pyand finds the row namedmonitoring/grafana-github-app. - THEN The row has the keys
app_id,installation_idandprivate_key, each entry is optional, and each entry names its App credential.
Requirement: The App credentials are config keys
CREDENTIALS SHALL declare grafana.github_app_id, grafana.github_app_installation_id and grafana.github_app_private_key, so devops config set accepts each name.
Scenario: The config command accepts the three App names
- WHEN The test calls
is_config_keyfor each of the three dotted keys and reads the keyring name of each credential. - THEN Each call returns true, and the keyring names are
grafana_github_app_id,grafana_github_app_installation_idandgrafana_github_app_private_key.
Requirement: Pending a person after the merge
The owner SHALL create the read-only GitHub App, store its three keyring entries, and verify the data source queries before the dashboard relies on them.
Scenario: Live App, query premise and API budget
- WHEN The owner has created the App, stored the three keyring entries, runs
uv run devops k8s push-secrets --only monitoring/grafana-github-app --planfrom the devops-cli branch, and opens the dashboard after the merge ofdan-petty/homelab#278. - THEN The plan shows
unchangedfor the Secret, the data source answers the Releases, Workflow_Runs, Stargazers and Repositories queries, panel 2 shows 274 releases, panel 5 shows the 55 min interval from v0.112.0 to v0.112.1, panel 11 shows one row for each workflow, panel 18 equalsstargazers_countandforks_countof the GitHub API, and the 30 d dashboard load uses less than 5 % of the hourly limit of the App.
Existing Tool Considered
grafana/github-datasource (https://github.com/grafana/github-datasource), Apache-2.0, maintained. The alternatives block of 2026-11-29 records the verdict covers; its Lacks: list is the source for what the tool lacks. The change keeps the panels that the tool does not cover on Prometheus, adds linter support for the plugin targets and builds no exporter. The plugin pin and the data source provisioning are in dan-petty/homelab#278.
Key questions
- Which open, maintained tool reads the GitHub project facts?: Adopt
grafana/github-datasource. The alternatives check of 2026-11-29 records the verdictcovers, and the owner decision of 2026-11-11 in the issue body selects the plugin. The plugin covers the Releases, Workflow_Runs, Stargazers and Repositories queries.AGENTS.mdputs an open tool before code that the project builds and keeps itself. (best practice) [sources: AGENTS.md:9, https://github.com/grafana/github-datasource]- Chosen: Adopt
grafana/github-datasource. It covers the four query types that the moved panels need, and the project already selects it. - Rejected: Build a custom exporter.
AGENTS.mdputs an open tool before code that the project builds and keeps itself. - Rejected: Keep the Prometheus snapshot gauges. The ten-release cap, rounded intervals, run-name label and stale stars remain.
- Chosen: Adopt
- Which file holds the project metrics dashboard?:
k8s/devops/dashboards/project-metrics.json. The issue body pathk8s/monitoring/dashboards/project-metrics.jsonis stale. The product dashboards are ink8s/devops/dashboards/, andk8s/README.mdnames that folder. [sources: k8s/devops/dashboards/project-metrics.json, k8s/README.md:223] - Which panels move to the data source and which stay on Prometheus?: Move panel 2 (Total Releases Tracked), 3 (Average Cadence), 4 (Release Cadence Distribution), 5 (Release Intervals), 10 (CI pass rate, last 50 runs), 11 (CI Runs by Workflow & Conclusion) and 18 (GitHub Stars & Forks). Keep panel 7 (Commits & Pull Requests per Release), 13 (Items by Release), 14 (Items by state), 16, 17, 19 and 20 (traffic), 22 and 23 (upstream status), 24 (Oldest Item Age by Phase) and 25 (Inbox Items by Kind) on Prometheus. The issue body panel 8 does not exist: panel 7 holds both the commit and the pull-request targets. The issue body panel 13 (Issues by milestone) does not exist either: panel 13 is Items by Release. The plugin has no built-in transformation that groups commits and pull requests by release, so panel 7 and its two gauges stay. The plugin has no query for the traffic, roadmap item, item-age, inbox or upstream-status facts. (best practice) [sources: k8s/devops/dashboards/project-metrics.json:54, k8s/devops/dashboards/project-metrics.json:291, k8s/devops/dashboards/project-metrics.json:426, k8s/devops/dashboards/project-metrics.json:848, https://github.com/grafana/github-datasource]
- Chosen: Move the release, CI and repository panels. The plugin covers the Releases, Workflow_Runs, Stargazers and Repositories queries.
- Rejected: Move every panel. The plugin has no query for the traffic, roadmap item, item-age, inbox or upstream-status facts, and no built-in release grouping for commits and pull requests.
- Rejected: Keep every panel on Prometheus. The release cap, rounded intervals, run-name label and stale stars remain.
- Is fix(monitoring): show one repository at a time in Project Velocity #4712 delivered, so this item needs nothing from it?: Yes. The change of fix(monitoring): show one repository at a time in Project Velocity #4712 is archived. The dashboard holds the
jobandrepovariables, single-valued with defaultsroadmap-serviceanddan-petty/devops-cli. This item keeps the variables and has no dependency. [sources: openspec/changes/archive/2026-11-18-4712-show-one-repository-in-project-velocity/proposal.md:9, k8s/devops/dashboards/project-metrics.json:1285, tests/fixtures/dashboard_queries/project-metrics.yaml] - How do the GitHub panels follow the
repovariable of fix(monitoring): show one repository at a time in Project Velocity #4712?: Keeprepoas the singleowner/nameselection. Add two hidden query variablesownerandrepositoryoverlabel_values(devops_cli_project_items{job="$job",repo="$repo"}, repo), with a capture-group regex (/^([^/]+)\//and/\/(.+)$/) in the variable'sregexfield, so each follows the selected repository. The plugin queries name an owner and a repository separately, so the oneowner/namevalue cannot fill both.jobandrepokeep their defaults and their Prometheus filters. (best practice) [sources: k8s/devops/dashboards/project-metrics.json:1285]- Chosen: Keep
repoand deriveownerandrepository. The dashboard keeps fix(monitoring): show one repository at a time in Project Velocity #4712's variable and its selection, and the plugin targets get the two fields they name. - Rejected: Replace
repowithownerandnamevariables. It removes the singleowner/namevariable of fix(monitoring): show one repository at a time in Project Velocity #4712 and changes the panel filters. - Rejected: Hardcode the owner and repository in the targets. The repository selection stops working.
- Chosen: Keep
- Which data source UID do the dashboard targets name?: Use UID
grafana-github-datasource. The targets name the typegrafana-github-datasourceand the UIDgrafana-github-datasource. The homelab follow-updan-petty/homelab#278must provision the data source with the same UID. The lint checks the type. (best practice) [sources: https://github.com/grafana/github-datasource, k8s/devops/dashboards/project-metrics.json:25]- Chosen: UID
grafana-github-datasource. It matches the plugin ID and cannot collide with the Prometheus UID. - Rejected: UID
github. It does not name the plugin and can collide with another data source.
- Chosen: UID
- How does the data source authenticate?: Use a new read-only GitHub App on the public repositories. Install it on the public repositories of
service.repos. Grant read-only Actions, Contents, Issues, Metadata and Pull requests permissions. Set no webhook. The plugin's App mode reads the App ID, installation ID and private key, so no user login is needed. ADR 0015 records that the roadmap jobs act as a GitHub App on the personal account, anddocs/CLUSTER.mdgives the App creation steps. (best practice) [sources: docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md, docs/CLUSTER.md:42, https://github.com/grafana/github-datasource]- Chosen: Read-only GitHub App on the public repositories. It gives read-only repository permissions and needs no user login or rotating token.
- Rejected: Personal access token. It is not scoped to the repositories of
service.reposand gives more access than the panels need. - Rejected: GitHub OAuth. The App mode gives read-only repository permissions and needs no user login.
- Where do the App values live, and how does the monitoring Secret read them?: Declare three credentials in
CREDENTIALS:grafana.github_app_id,grafana.github_app_installation_idandgrafana.github_app_private_key. Their keyring names aregrafana_github_app_id,grafana_github_app_installation_idandgrafana_github_app_private_key. A person stores the App ID and the installation ID withdevops config set <key> <value>, and the private key withdevops config set grafana.github_app_private_key --from-file <key.pem>. Add one optional row toCLUSTER_SECRETSnamedmonitoring/grafana-github-appwith the keysapp_id,installation_idandprivate_key. The row reads the three credentials and writes one Secret in themonitoringnamespace when the keyring holds the values. The Service App key is not copied. The datasource provisioning indan-petty/homelab#278reads the Secret with${ENV}references and holds no secret value. (best practice) [sources: src/devops_cli/config/env.py:73, src/devops_cli/config/settings.py:3641, src/devops_cli/k8s/cluster_secrets.py:707, k8s/README.md:272]- Chosen: Three credentials and one
CLUSTER_SECRETSrow.devops config setaccepts the names, the keyring keeps the values out of git, and the row lands with the consumer in the monitoring namespace. - Rejected: Keyring-only entries and
uv run keyring set. The issue body namesdevops config setand the credential names, and a keyring-only name is no config key. - Rejected: Copy the Service App private key. The Service App has broader permissions.
- Rejected: Put the private key in the values file. The values file is committed, so a literal private key would leak.
- Chosen: Three credentials and one
- Which gauges does the change remove?: Remove
devops_cli_project_releases,devops_cli_project_release_interval_days,devops_cli_project_stars,devops_cli_project_forksanddevops_cli_project_ci_runs. Remove their emitters, the workflow-run and milestone reads of the Service metrics row, and their documentation. Keep the commits, pull requests, items, traffic, item-age and upstream-status gauges. (best practice) [sources: src/devops_cli/telemetry/instruments.py:922, src/devops_cli/github/metrics.py:1157, docs/TELEMETRY.md:211]- Chosen: Remove the five gauges in the same pull request. The new panels replace their facts, and the project keeps no shim before 1.0.
- Rejected: Keep the gauges as a fallback. The old gauges carry the defects that this item removes.
- Rejected: Remove all project gauges. The kept panels still read the commits, pull requests, items, traffic, age and upstream gauges.
- How does the Service metrics row stop reading workflow runs and milestones while
devops gh metricskeeps its tables?: Add opt-out flagsworkflow_runsandmilestones, defaultTrue, tocollect_project_metrics_report. Pass both asFalsefrom_run_metrics_adapterin the Service metrics row.devops gh metricskeeps the defaults and its workflow and milestone tables. Those tables are the only readers ofreport.workflow_runsandreport.milestonesbesides the removed CI emitter. (best practice) [sources: src/devops_cli/github/metrics.py:973, src/devops_cli/roadmap/run.py:1152, src/devops_cli/commands/gh.py]- Chosen: Two opt-out flags on the existing function. The Service row skips two reads it no longer uses, and the CLI command keeps its tables.
- Rejected: Remove both reads from the collection. It drops the workflow and milestone tables of
devops gh metrics. - Rejected: Add a separate collection function for the row. It duplicates the aggregation that the row and the command share.
- Does
devops grafana dashboards lintaccept a target ofgrafana-github-datasourcetoday?: No. The linter readsquery.exprfor a target that is not of the expression datasource. TheTargetmodel has noqueryTypefield. A plugin target parses with an emptyexpr, and the linter reports an empty query. The change addsquery_typeandoptionstoTarget, addstime_fromtoPanel, and reads the plugin target'squeryType. [sources: src/devops_cli/grafana/linter.py:270, src/devops_cli/grafana/schema.py:59] - Does the plugin answer the Releases, Workflow_Runs, Stargazers and Repositories queries with the App?: The alternatives check of 2026-11-29 records the verdict
coversand names the Releases, Workflow_Runs, Stargazers and Repositories queries. The plugin README, fetched on 2026-11-29, states that it queries the GitHub API through thegithubv4GraphQL package and caches responses aggressively, so a new fact takes up to five minutes to show. The exact query names against the installed App are the live premise check after the owner creates the App. [sources: https://github.com/grafana/github-datasource]
Open questions
- The alternatives check found that https://github.com/grafana/github-datasource covers this item. Adopt the tool, or keep the item and give the reason. (a person decides)
Fit
Fits in one pull request.
Suspected block
The owner creates the read-only GitHub App on the public repositories and stores its three keyring entries; dan-petty/homelab#278 pins the plugin and provisions the data source; the live premise and dashboard checks wait on both.
Dependencies
None.
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.
featprefix of the title gives the type.(monitoring)scope of the title gives the scope.The dashboard shows incorrect values but still works; this is an accuracy improvement, not a blocker.Users receive correct release counts, intervals, stars, and CI run data instead of capped or conflicting values.It needs an owner-created GitHub App, secret registration, plugin pinning, data source provisioning, panel rewrites, API cost checks, and gauge removal.Both work on the project metrics Grafana dashboard, but #926 created the gauges and panels while the candidate replaces the data source for those panels.dan-petty commentedon Nov 12, 2026
Corrections from the Grafana evaluation of 2026-11-12 (origin/main
0a14161ed). These corrections apply to this item.1. Step 3: no minimum release age. Step 3 asks for a plugin version "released at least two weeks before the pull request (v2.10.0 qualifies from 2026-11-17)". This conflicts with the owner rule of 2026-11-11 in
CONTRIBUTING.md:35(Dependency Versions): a dependency has no minimum release age, and the pull request pins the newest release that the surrounding tools support. Remove the two-week clause from step 3. Pin the newest release at the time of the pull request.2. Each viewer can run each query that the App permits. Grafana gives anonymous users the Viewer role (
k8s/monitoring/grafana-values.yaml:84-86:auth.anonymouswithenabled: trueandorg_role: Viewer). Grafana OSS has no data source permissions. Thus each viewer can run each query that the App permits through this data source. If the App can read a private repository, each viewer can see the titles and data of that repository.Give the read-only App access to the public repository only. In the person step, install the App only on the public repository. If
service.reposholds a private repository, do not install the App on it.3. The newest release is 2.10.0. On 2026-11-12, the newest release of
grafana-github-datasourceis v2.10.0 (2026-11-03,devops gh api repos/grafana/github-datasource/releases/latest). It needs Grafana>=11.6.7-0, and the cluster runs Grafana 13.3.1. Pin[email protected], or a newer release if one exists when the pull request opens.devops-cli-service commentedon Nov 14, 2026
Alternatives check: covers
Reason: The searches returned the Grafana GitHub data source repository, which confirms it is an open Grafana plugin that queries the GitHub API for dashboards and caches responses for about five minutes to respect rate limits. That matches the issue's own need: it replaces the snapshot gauges for releases, release intervals, CI runs, stars, commits, pull requests and milestones with direct API queries, and only the traffic row stays on the Prometheus emitter as the issue already plans.
Tool: grafana/github-datasource (https://github.com/grafana/github-datasource)
Covers:
Lacks:
Tools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 15, 2026
Owner question: The alternatives check found that https://github.com/grafana/github-datasource covers this item. Adopt the tool, or keep the item and give the reason. (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 15, 2026
Owner question: The alternatives check found that https://github.com/grafana/github-datasource covers this item. Adopt the tool, or keep the item and give the reason. (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
k8s/devops/dashboards/project-metrics.json.devops-cli-service commentedon Nov 18, 2026
Owner question: Who creates the read-only GitHub App and stores its values? (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 20, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 23, 2026
The result in the alternatives block of the issue body changed. Before this check:
covers, tool https://github.com/grafana/github-datasource. A person decides what the new result means for the item.Searches (3)
Tools considered:
Searches run:
Sources:
dan-petty commentedon Nov 24, 2026
Adopt the tool: grafana/github-datasource. AGENTS.md rule 3 requires using an open tool before building.
devops-cli-service commentedon Nov 24, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 26, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 26, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 27, 2026
The plan of dan-petty/homelab#278 (dan-petty/homelab PR 511, head
f95c793) changed in two points that this item reads:grafana-github-datasource, as the design of this item asks.monitoring/grafana-github-appreads three optional keyring entries with no setting:grafana_github_app_id,grafana_github_app_installation_idandgrafana_github_app_private_key. This is the form of the rowarc-runners/runner-github-app. Todaydevops config set grafana.github_app_idexits 1 withUnknown config key, and a push of a row that reads that setting stops withAttributeError: 'GrafanaConfig' object has no attribute 'github_app_id'.So the homelab item does not wait for this item. This item does not need the settings
grafana.github_app_idandgrafana.github_app_installation_idor the credentialgrafana.github_app_private_keyfor the push. A person stores the values withuv run keyring set devops-cli <key>. Install the App on public repositories only (correction 2 above).devops-cli-service commentedon Nov 27, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 29, 2026
The result in the alternatives block of the issue body changed. Before this check:
in-use, tool https://github.com/grafana/github-datasource. A person decides what the new result means for the item.Searches (5)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 29, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence