fix: Render the deployed version in the Version panel #18
No reviewers
Labels
No labels
priority/P0
priority/P1
priority/P2
priority/P3
size/L
size/M
size/S
size/XL
size/XS
state/done
state/in-progress
state/in-review
state/needs-refinement
state/ready
type/bug
type/chore
type/feature
type/refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
amtronics/platform-actions!18
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/version-panel-table"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The dashboard Version panel was blank for every app, even though
app_build_info{version}is present in Prometheus (verified for all three). Thepanel used
textMode: name+reduceOptions.fields: /^version$/with nolegendFormat— 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 versionstring;
textMode: namethen renders it. Confirmed via Grafana's/api/ds/query:the field's
displayNameFromDSresolves tov0.2.1(etc.).Rollout
Merge → move the
v3tag → re-run each app's Monitoring workflow (or the infrasync-dashboardsfan-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.