Skip to content

build(deps): renovate proposes each new grafana plugin release - #2612

Merged
dan-petty merged 2 commits into
mainfrom
build/2054-grafana-plugin-renovate
Oct 29, 2026
Merged

dan-petty merged 2 commits into
mainfrom
build/2054-grafana-plugin-renovate

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Renovate had no manager for the Grafana plugins that k8s/monitoring/grafana-values.yaml pins as <id>@<version>, so the four Drilldown apps stayed at 3.0.0.

  • A regex custom manager reads the pins of that one file, and a custom datasource reads each plugin's releases from https://grafana.com/api/plugins/<id>/versions with a JSONata transform.
  • Each plugin gets its own pull request, held below the next major (<4.0.0), with the type/chore and scope/infra labels.
  • A release names the Grafana it needs as grafanaDependency, which Renovate cannot read. The 3.1.0 releases need Grafana 13.1 to 13.3, so the pull request note links the release record for the reviewer to check against the grafana chart's image.

Closes #2054

Change: openspec/changes/archive/2026-10-29-2054-grafana-plugin-renovate/

A regex custom manager reads the `<id>@<version>` pins of the
`plugins` value in `k8s/monitoring/grafana-values.yaml`, and a custom
datasource reads each plugin's releases from grafana.com. Each plugin
gets its own pull request, held below the next major, with a note that
links the release's `grafanaDependency`. Renovate cannot read that
field, and the 3.1.0 releases need different Grafana minors.
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence:

  • Failing first: the three new tests in tests/test_renovate_config.py failed before the config change (no custom manager matched the values file). After it, the file's 8 tests pass, and 141 tests of the Renovate, Grafana integration, tools-lock and invariant files pass.
  • The match string, run with JavaScript regex in node on the values file, finds the same four pins and nothing else. The file pattern matches k8s/monitoring/grafana-values.yaml and no other file.
  • The JSONata transform, run with JSONata 2 on the saved grafana.com reply for grafana-lokiexplore-app, gives 65 releases (newest 3.1.0) as a list; a one-item reply also gives a list.
  • grafanaDependency of each 3.1.0 release, read 2026-10-29: lokiexplore >=13.2.0-0, metricsdrilldown >=13.3.0-0, pyroscope >=13.1.0-0, exploretraces >=13.2.0-0. The running Grafana is 13.2.4, so the metricsdrilldown pull request must wait for a Grafana 13.3 image.
  • Not run: renovate-config-validator. This session's permissions refused to run the downloaded Renovate package. The Renovate App validates the config on its next run.

Pending a person: check that Renovate's next run reports no configuration error; check grafanaDependency before each plugin merge; review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 03:17
@dan-petty
dan-petty merged commit a0165a1 into main Oct 29, 2026
15 checks passed
@dan-petty
dan-petty deleted the build/2054-grafana-plugin-renovate branch October 29, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build(deps): renovate proposes new releases of the pinned grafana plugins

1 participant