Add Prometheus market metrics export (#5)#7
Open
Errordog2 wants to merge 1 commit into
Open
Conversation
7 tasks
Nexussyn
added a commit
to Nexussyn/TentOfTrials
that referenced
this pull request
Jun 22, 2026
…ript] Add per-endpoint API timeout confi
Nexussyn
added a commit
to Nexussyn/TentOfTrials
that referenced
this pull request
Jun 22, 2026
…ript] Add per-endpoint API timeout confi
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
Implements the Prometheus-compatible market gateway metrics export tracked by #5.
Changes
market/analyticswith/metricshandler support.market_orders_total{type,side},market_trades_total,market_active_connections,market_orderbook_depth{side}, andmarket_matching_latency_seconds.9090by default, configurable viaMETRICS_PORT, behind the existing--metricsflag.diagnostic/build-62be7990.logdplus matching JSON metadata.Fixes #5.
Validation
market_orders_total{type,side}.marketmodule PASS frompython3 build.pyon the metrics implementation (diagnostic/build-62be7990.json).gois not installed; Docker daemon is not running), so this PR includes the generated diagnostic artifact from the prior Linux validation run.Checklist