Skip to content

feat(monitoring): read project facts with the GitHub data source #4747

Open

Description

@dan-petty

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_releases is the length of the release list after release_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_days is 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_stars shows 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:

  1. 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.
  2. Register the keyring entries in src/devops_cli/k8s/cluster_secrets.py as one Secret in the monitoring namespace, so devops k8s push-secrets makes it. The Service App key is not copied.
  3. Pin grafana-github-datasource in the plugins list of k8s/monitoring/grafana-values.yaml of 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).
  4. Provision the data source in grafana-values.yaml with selectedAuthType github-app and ${ENV} values from the Secret. The provisioning file holds no secret value.
  5. 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.
  6. 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.
  7. 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_count and forks_count of 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.py entry makes one Secret in the monitoring namespace from the keyring entries.
  • git grep of each removed metric name returns nothing in src, k8s and docs.
  • 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.json
  • src/devops_cli/k8s/cluster_secrets.py
  • src/devops_cli/github/metrics.py
  • src/devops_cli/telemetry/instruments.py
  • docs/TELEMETRY.md
  • tests/github/test_github_metrics.py
  • tests/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/dashboards runs 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/dashboards runs 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/dashboards runs 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/dashboards runs 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/dashboards runs 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-datasource and whose queryType is Releases.
  • 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_Runs target whose options.limit is 20 and whose panel sets no timeFrom.
  • 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_queries runs.
  • 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 INSTRUMENTS from src/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_telemetry with 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_report with both flags as False against a fake GitHub and then with no flags.
  • THEN The fake GitHub records no request to actions/runs or milestones for 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_adapter over the in-memory store and a fake GitHub session.
  • THEN The fake session records no request to actions/runs or milestones.

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_SECRETS from src/devops_cli/k8s/cluster_secrets.py and finds the row named monitoring/grafana-github-app.
  • THEN The row has the keys app_id, installation_id and private_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_key for 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_id and grafana_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 --plan from the devops-cli branch, and opens the dashboard after the merge of dan-petty/homelab#278.
  • THEN The plan shows unchanged for 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 equals stargazers_count and forks_count of 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 verdict covers, 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.md puts 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.md puts 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.
  • Which file holds the project metrics dashboard?: k8s/devops/dashboards/project-metrics.json. The issue body path k8s/monitoring/dashboards/project-metrics.json is stale. The product dashboards are in k8s/devops/dashboards/, and k8s/README.md names 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 job and repo variables, single-valued with defaults roadmap-service and dan-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 repo variable of fix(monitoring): show one repository at a time in Project Velocity #4712?: Keep repo as the single owner/name selection. Add two hidden query variables owner and repository over label_values(devops_cli_project_items{job="$job",repo="$repo"}, repo), with a capture-group regex (/^([^/]+)\// and /\/(.+)$/) in the variable's regex field, so each follows the selected repository. The plugin queries name an owner and a repository separately, so the one owner/name value cannot fill both. job and repo keep their defaults and their Prometheus filters. (best practice) [sources: k8s/devops/dashboards/project-metrics.json:1285]
  • Which data source UID do the dashboard targets name?: Use UID grafana-github-datasource. The targets name the type grafana-github-datasource and the UID grafana-github-datasource. The homelab follow-up dan-petty/homelab#278 must 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.
  • 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, and docs/CLUSTER.md gives 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.repos and 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_id and grafana.github_app_private_key. Their keyring names are grafana_github_app_id, grafana_github_app_installation_id and grafana_github_app_private_key. A person stores the App ID and the installation ID with devops config set <key> <value>, and the private key with devops config set grafana.github_app_private_key --from-file <key.pem>. Add one optional row to CLUSTER_SECRETS named monitoring/grafana-github-app with the keys app_id, installation_id and private_key. The row reads the three credentials and writes one Secret in the monitoring namespace when the keyring holds the values. The Service App key is not copied. The datasource provisioning in dan-petty/homelab#278 reads 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_SECRETS row. devops config set accepts 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 names devops config set and 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.
  • Which gauges does the change remove?: Remove devops_cli_project_releases, devops_cli_project_release_interval_days, devops_cli_project_stars, devops_cli_project_forks and devops_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 metrics keeps its tables?: Add opt-out flags workflow_runs and milestones, default True, to collect_project_metrics_report. Pass both as False from _run_metrics_adapter in the Service metrics row. devops gh metrics keeps the defaults and its workflow and milestone tables. Those tables are the only readers of report.workflow_runs and report.milestones besides 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 lint accept a target of grafana-github-datasource today?: No. The linter reads query.expr for a target that is not of the expression datasource. The Target model has no queryType field. A plugin target parses with an empty expr, and the linter reports an empty query. The change adds query_type and options to Target, adds time_from to Panel, and reads the plugin target's queryType. [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 covers and 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 the githubv4 GraphQL 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

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

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/monitoring
    status/new
    value/medium
    effort/high
    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/feature. The feat prefix of the title gives the type.
    • Scope: scope/monitoring. The (monitoring) scope of the title gives the scope.
    • Priority: P2-Medium. The dashboard shows incorrect values but still works; this is an accuracy improvement, not a blocker.
    • Value: Medium. Users receive correct release counts, intervals, stars, and CI run data instead of capped or conflicting values.
    • Effort: High. It needs an owner-created GitHub App, secret registration, plugin pinning, data source provisioning, panel rewrites, API cost checks, and gauge removal.
    • Related: feat(gh): project and release metrics analytics and grafana dashboard #926, which asks for a different change. 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.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    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.anonymous with enabled: true and org_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.repos holds 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-datasource is 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.

  6. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    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)

    • License: Apache-2.0
    • Last activity: 2026-11-13
    • Maintained: yes

    Covers:

    • Reads project facts straight from the GitHub API through Grafana queries, so panel values are not capped by a 10-item release list or lost between snapshots
    • Backs the Releases, Commits, Pull_Requests, Workflow_Runs, Milestones, Stargazers and Repositories queries that panels 2, 3, 4, 5, 7, 8, 10, 11, 13 and 18 need
    • Authenticates as a GitHub App and caches responses for about 5 minutes to stay inside GitHub's rate limits
    • Runs as a Grafana data source, so the panels keep their shapes and the project needs no new emitter code

    Lacks:

    • No traffic query (views, clones, referrers, paths), so panels 16 to 20 keep the devops-cli emitter
    • No verified built-in transformation that groups commits and pull requests by release, so those two gauges may stay
    • A 30 d Workflow_Runs query pages through many runs, so its range or page count must be limited

    Tools considered:

    Searches run:

    • Grafana GitHub data source plugin github-app authentication queries releases commits workflow runs, results: 5
    • grafana github datasource workflow_runs stargazers milestones query variables, results: 5
    • grafana-github-datasource plugin documentation GitHub App authentication queries, results: 5
    • grafana github datasource plugin releases panel workflow runs Grafana Labs blog, results: 5
    • "github-datasource" Grafana plugin catalog GitHub App, results: 5
    • github-datasource grafana, results: 5
    • grafana github datasource, results: 5
    • grafana.com docs plugins grafana-github-datasource queries releases workflow runs, results: 5
    • GitHub data source plugin documentation Grafana, results: 5
    • grafana github datasource plugin authentication github app token, results: 5

    Sources:

    Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.

  7. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    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

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  8. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    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

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    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.

  9. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Owner question: Who creates the read-only GitHub App and stores its values? (a person decides)

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  10. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  11. devops-cli-service commented on Nov 23, 2026

    @devops-cli-service
    Contributor

    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:

    • Grafana GitHub data source plugin releases workflow runs stargazers GitHub App, results: 5
    • grafana-github-datasource plugin query types Releases Workflow_Runs Stargazers, results: 5
    • grafana github datasource plugin README query types releases workflow runs, results: 5

    Sources:

  12. dan-petty commented on Nov 24, 2026

    @dan-petty
    OwnerAuthor

    Adopt the tool: grafana/github-datasource. AGENTS.md rule 3 requires using an open tool before building.

  13. devops-cli-service commented on Nov 24, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  14. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  15. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  16. dan-petty commented on Nov 27, 2026

    @dan-petty
    OwnerAuthor

    The plan of dan-petty/homelab#278 (dan-petty/homelab PR 511, head f95c793) changed in two points that this item reads:

    • The data source has the uid grafana-github-datasource, as the design of this item asks.
    • Secret monitoring/grafana-github-app reads three optional keyring entries with no setting: grafana_github_app_id, grafana_github_app_installation_id and grafana_github_app_private_key. This is the form of the row arc-runners/runner-github-app. Today devops config set grafana.github_app_id exits 1 with Unknown config key, and a push of a row that reads that setting stops with AttributeError: '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_id and grafana.github_app_installation_id or the credential grafana.github_app_private_key for the push. A person stores the values with uv run keyring set devops-cli <key>. Install the App on public repositories only (correction 2 above).

  17. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  18. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    Contributor

    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:

    • Grafana GitHub data source plugin queries releases workflow runs stargazers, results: 5
    • grafana github-datasource plugin documentation GitHub App authentication, results: 5
    • github datasource grafana plugin, results: 5
    • grafana.com plugins grafana-github-datasource, results: 5
    • github datasource grafana releases workflow runs stargazers repositories query types, results: 5

    Sources:

  19. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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/highpriority/p2-mediumscope/monitoringsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions