Conversation
- Add TimescaleDB continuous aggregate cml_data_1h (1h min/max/avg) - Remove Altair time-series from real-time route; keep for archive only - Grafana: show 1h min/max band always, avg/raw switching on zoom level - Grafana: per-sublink colors, interval selector (Auto/Raw)
- Replace COUNT(*) with approximate_row_count() for record totals - Replace MIN/MAX(time) FROM cml_data with MIN/MAX(bucket) FROM cml_data_1h - Replace per-CML COUNT GROUP BY with cml_data_1h aggregate estimate
- Remove generate_archive_charts() and pandas/altair imports - Add cml-archive Grafana dashboard (active sublinks + data points per hour) - Simplify archive page: remove header, metric cards and top-CML table - Add compact summary bar with record count, CML count, date range
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #27 +/- ##
==========================================
+ Coverage 71.44% 73.18% +1.73%
==========================================
Files 22 22
Lines 2021 1965 -56
==========================================
- Hits 1444 1438 -6
+ Misses 577 527 -50
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Changes
cml_data_1hcontinuous aggregate (min/max/avg per sublink per hour) with an auto-refresh policy, reducing query load for historical data.cml-archivedashboard with two bar chart panels (active sublinks/hour and approximate data points/hour), embedded in the archive page via iframe.COUNT(*)withapproximate_row_count(), replacedMIN/MAX(time) FROM cml_datawithMIN/MAX(bucket) FROM cml_data_1h, and removed the per-CMLGROUP BYstats query. Fully removed pandas and Altair from the webserver.