Repository navigation
feat(models/up): back health check with Analytics Engine; remove admin Model Status tab - #7072
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Previous Review Summaries (2 snapshots, latest commit eaf8926)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit eaf8926)Status: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Previous review (commit 39e67e8)Status: No Issues Found | Recommendation: Merge Files Reviewed (5 files)
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
chrarnoldus
force-pushed
the
remove-model-status-alerting
branch
from
October 2, 2026 07:25
eaf8926 to
63bd102
Compare
iscekic
approved these changes
Oct 2, 2026
This was referenced Oct 3, 2026
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.
Summary
/api/models/up, the model traffic health check polled by BetterStack, now reads theo11y_api_metricsAnalytics Engine dataset instead ofmicrodollar_usage. The URL, key,atparameter, time windows, thresholds, status codes and JSON format are unchanged.HEALTH_CHECK_EXCLUSIONS, so every monitored model can now return a 503. The per-modelmonitoredfield stays in the response and is alwaystrue./admin/alerting, itsModelStatusContentcomponent, and the/admin/model-statusredirect page.Query mapping
microdollar_usage)o11y_api_metrics)requested_modelblob2(resolved model), matched againstnormalizeModelId(monitoredModel)has_error = falseblob4 = '0'COUNT(*)SUM(_sample_interval)COUNT(DISTINCT kilo_user_id)count(DISTINCT blob7)Windows are unchanged: current 15m, previous 15–30m, baseline 30m–2h (divided by 6). On a query error or a 10s timeout the endpoint still reports healthy (fails open). It uses the existing
R2_ACCOUNT_IDandCF_ANALYTICS_ENGINE_TOKENweb env vars, which the KiloClaw and Gastown admin analytics routes already use. The emitted metrics data is unchanged.Known differences from the Postgres version
:freevariants are counted together with their paid model./ingest/api-metrics). If ingestion stops, models look like their traffic dropped.Verification