Repository navigation
Feature: feat/telemetry-prod-grading to dev - #478
Merged
Merged
Conversation
The analytics page and the metrics scrape share registrations, badge scans, and judging totals for the edition that is actually running.
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.
Automated PR tracking changes from
feat/telemetry-prod-gradingintodev.Note
Medium Risk
Adds read-heavy aggregate queries on the metrics scrape path and admin polling (60s/15s caches mitigate); judging-idle alerting depends on correct gauge semantics during live events.
Overview
Adds database-backed hackathon telemetry for live editions (
open,closed,in_progress): newdsgt_hackathon_*Prometheus gauges, a Grafana row, docs, and aHackathonJudgingIdlealert when judging is on with tables assigned but zero scores for 30 minutes.readLiveHackathonscentralizes the counts (participants by status, projects, Eastern-midnight badge scans, judging tables/votes) and feeds bothrefreshDbGauges(with gauge reset so completed editions drop off) and a cachedadmin.hackathonLivetRPC query. Membership/payment gauge refresh is rewritten from raw SQL to Drizzle; plan mix still comes from payment metadata parsing.Admin analytics splits today’s turnout into
badgeScansToday(hackathon QR) vsdoorCheckinsToday(club events), keepscheckinsTodayas the sum for older callers, and the analytics page adds a Live hackathon section aligned with metrics.ClickHouse gets hackathon tables (
02-hackathon.sql) andexport:clickhouseexports registrations, projects, scans, and votes (schema ensured on existing volumes).Reviewed by Cursor Bugbot for commit eee1f4f. Bugbot is set up for automated code reviews on this repo. Configure here.