Repository navigation
feat(monitoring): enable the image renderer for panel checks - #5193
Conversation
Grafana had no image renderer, so the render API returned HTTP 500 and no agent could render a panel in the light and the dark theme. - Enable imageRenderer of the grafana chart at v5.12.11 with IfNotPresent, CPU and memory requests and limits, GOMEMLIMIT and the ingress NetworkPolicy of the chart. The chart points Grafana at the renderer Service and adds no Ingress. - Take the renderer token from Secret monitoring/grafana-image-renderer, a new row of the cluster Secret table, because the chart's own Secret gets a new random token at each helm template. - Document the renderer and the render check in k8s/README.md. Refs #5185
Proof
Local measurement (Grafana 13.3.1 and the renderer v5.12.11 in containers, the security context of the chart, the limits of this pull request): 10 renders in a row of panel 11 of Scoped checks: 1072 tests of the k8s, Secret table, Renovate and monitoring files pass; Pending steps
|
Bandit B105 reads a constant with "TOKEN" in its name as a hard-coded password. The value is the name of a keyring entry, so the constant takes the *_AUTH_KEY form of the other keyring-only keys. Refs #5185
bf08855 to
e91bb17
Compare
|
Post-merge checks, 2026-11-12:
|
🤖 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>
Enable the image renderer of the
grafanachart, so the render API, the MCP toolget_panel_imageand alert images get a PNG of a panel. The image isgrafana/grafana-image-renderer:v5.12.11withIfNotPresent, requests of 100m CPU and 512Mi, limits of 2 CPUs and 1536Mi,GOMEMLIMIT=192MiBand the ingress NetworkPolicy of the chart. The chart points Grafana at the renderer Service. No Ingress routes to it.The token comes from Secret
monitoring/grafana-image-renderer, a new row of the cluster Secret table, because the chart's own Secret gets a new random token at eachhelm template, which Argo CD runs.k8s/README.mddocuments the renderer and the render check in the light and the dark theme.Closes #5185
Change:
openspec/changes/archive/2026-11-12-5185-grafana-image-renderer/