Remove Prometheus metrics from indexer and docs (no /metrics) #200
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic#200
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem statement
The project will not ship Prometheus. The indexer currently includes optional
GET /metricson a dedicated listener (METRICS_BIND),prometheuscrate usage, tests, and operator docs — this should be removed to reduce ops surface and dependency weight. Supersedes backlog #89 / DEX-P2-024 (do not implement metrics export).Evidence / context
indexer/src/metrics.rs,indexer/Cargo.tomlprometheusdependency.indexer/src/config.rs—metrics_listen,METRICS_BIND, deploy env bind policy.indexer/tests/api_metrics.rs.docs/operator-secrets.md,docs/environment-matrix.md, GitLab #125 references.Proposed solution
METRICS_BIND, relatedDEPLOY_ENVbind rules).prometheusfromCargo.toml; dropapi_metricstests.Acceptance criteria
/metricsroute orprometheusdependency in indexer.Priority
P2
mentioned in commit
9b709014dfImplementation complete (pushed to
main)Removed optional Prometheus metrics from the indexer per acceptance criteria. Supersedes #89 / #125 observability model — tracing-only going forward.
Code changes
indexer/src/metrics.rs,indexer/tests/api_metrics.rs, and theprometheuscrate dependencyMETRICS_BIND/METRICS_PORT,DeployEnv, dedicated metrics listener, andGET /metricsrouteapi::serveto a single API listener; block processing relies on existingtracingwarnings/errors inpoller.rsDocs / invariants / agent skills
docs/indexer-invariants.md(observability row + block-time fallback section)docs/operator-secrets.md,docs/environment-matrix.md, reorg runbook, incident templatedocs/README.mdandskills/AGENTS_LOCALNET_TRADING_SWARM.mdCommit:
9b70901onmainVerification checklist
cd indexer && cargo test --lib— 38 unit tests pass; noprometheusinCargo.lockgrep -rE 'METRICS_BIND|/metrics|prometheus' indexer/— no matches in sourceMETRICS_BIND/DEPLOY_ENVenv varsGET /metricson API port returns 404Invalid block timestamp/Missing block timestamp)@brouie — please verify when you have a moment. Leaving this issue open until sign-off.
Verification complete (agent sign-off)
Verified implementation on
main(6278f3e) against all acceptance criteria and the verification checklist from the prior comment.Checklist results
cd indexer && cargo test --lib— 39 unit tests pass; noprometheusinCargo.lockgrep -rE 'METRICS_BIND|/metrics|prometheus' indexer/— no matches in sourcehttp://127.0.0.1:3001withoutMETRICS_BIND/DEPLOY_ENVGET /metricson API port returns 404;GET /healthreturns 200poller.rs(Invalid block timestamp/Missing block timestamp)indexer/tests/api_metrics.rsandindexer/src/metrics.rsdeleted; noMETRICS_*in compose/env samplesInfra / visual verification
:5432; indexer healthy; bot swarm 30/30 workershttp://127.0.0.1:5173— Charts & Analytics loads overview metrics (45 pairs, 66k+ trades) from indexer APINo additional code changes required. Closing.
mentioned in issue #209
mentioned in issue #210
mentioned in issue #220
mentioned in issue #337
mentioned in issue #361
mentioned in issue #373
mentioned in issue #362