feat(monitoring): Display version and build timestamp in Grafana Self-monitoring dashboard
Summary
- Add
/versionendpoint to Flask backend that reads/VERSIONand/BUILD_TSfiles from the container - Add version banner panel to Self-monitoring dashboard using the Infinity datasource
- Displays as: PostgresAI v{version} (built: {build_ts}) at the top of the dashboard
Changes
| File | Change |
|---|---|
monitoring_flask_backend/app.py |
Added /version endpoint returning {"version": "...", "build_ts": "..."}
|
config/grafana/dashboards/Self_Monitoring_Dashboard.json |
Added full-width stat panel querying the version endpoint |
Test plan
- Deploy the stack and verify the version banner appears at the top of the Self-monitoring dashboard
-
Verify
/versionendpoint returns correct JSON when VERSION/BUILD_TS files exist - Verify graceful fallback to "unknown" when files don't exist
Edited by Nikolay Samokhvalov