revert: layerzero back to raw queries (lz recording rule 33s, kills Prometheus) - #1809
Merged
Conversation
www.defined.fi/api (createApiTokens GraphQL mutation) is dead as of 2026-08. New endpoint is /api/codex/token which returns JWE directly. Still blocked by Vercel TLS checkpoint for Go HTTP — use CODEX_JWT env var or DEFINED_TOKEN_SERVICE_URL sidecar (Paris box) for automatic refresh. scrape-cookie: add awaitPromise fix, diagnostic headers, in-browser fetch test.
# Conflicts: # harnesses/aggregator-head-lag/cmd/scrape-cookie/main.go # harnesses/aggregator-head-lag/cmd/script/defined_auth.go
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
The lz recording rule
sum by (source_chain, le) (rate(lz_message_latency_milliseconds_bucket[24h]))takes 33s to evaluate on this VPS and returnshealth: err, causing Prometheus to 503 on all queries. Removed from recording rules file (already done on VPS) and reverted the bench YAML to raw queries.The VPS simply doesn't have enough CPU to pre-compute the lz histogram over 24h of data. The bench will continue to show skip for lz chains when Prometheus is busy, same as before.
🤖 Generated with Claude Code