fix: Render the deployed version in the Version panel #18

Merged
ahmad merged 1 commit from fix/version-panel-table into main 2026-08-17 12:57:39 +00:00
Owner

Problem

The dashboard Version panel was blank for every app, even though
app_build_info{version} is present in Prometheus (verified for all three). The
panel used textMode: name + reduceOptions.fields: /^version$/ with no
legendFormat — an instant Prometheus query keeps labels as field metadata,
not columns, so the field filter matched nothing.

Fix

Use legendFormat: "{{version}}" so the series' display name is the version
string; textMode: name then renders it. Confirmed via Grafana's /api/ds/query:
the field's displayNameFromDS resolves to v0.2.1 (etc.).

Rollout

Merge → move the v3 tag → re-run each app's Monitoring workflow (or the infra
sync-dashboards fan-out) so all dashboards pick up the corrected panel.

### Problem The dashboard **Version** panel was blank for every app, even though `app_build_info{version}` is present in Prometheus (verified for all three). The panel used `textMode: name` + `reduceOptions.fields: /^version$/` with no `legendFormat` — an instant Prometheus query keeps labels as **field metadata**, not columns, so the field filter matched nothing. ### Fix Use `legendFormat: "{{version}}"` so the series' display name is the version string; `textMode: name` then renders it. Confirmed via Grafana's `/api/ds/query`: the field's `displayNameFromDS` resolves to `v0.2.1` (etc.). ### Rollout Merge → move the `v3` tag → re-run each app's Monitoring workflow (or the infra `sync-dashboards` fan-out) so all dashboards pick up the corrected panel.
The Version stat panel used textMode:name with a field filter but no
legendFormat, so it matched no field and showed nothing — the metric was
present all along. Use legendFormat "{{version}}" so the series display name
is the version, which textMode:name renders. Verified against Grafana's query
API: the field's displayName resolves to the version string.
ahmad merged commit b5599e6468 into main 2026-08-17 12:57:39 +00:00
ahmad deleted branch fix/version-panel-table 2026-08-17 12:57:39 +00:00
Sign in to join this conversation.
No description provided.