ProveTrade gateway metrics
provetrade_metricsMonitor gateway error rates and audit latency. Classified counters pinpoint causes like parse failures or rate limits.
Instructions
Read the gateway's operational counters and latency percentiles from GET /metrics-lite.
Use it to answer "is the error rate up?" or "how slow are audits right now?" — the counters are classified (parse failures, analyzer down, rate limits, LLM degradation) so a spike points at a cause.
Requires METRICS_TOKEN in the environment. It is never a parameter and never appears in any output. Without it the tool returns TOKEN_MISSING and nothing else breaks.
Read-only, no cost. The numbers are per-process and reset on redeploy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| counters | Yes | Per-class request counts. Classes: ok, bad_request, invalid_file_type, upload_limit, rate_limit, parse, analyzer_down, server_busy, llm_unavailable, other. Every class is always present — a zero is information too. | |
| latency_ms | Yes | Percentiles over a bounded recent window; the process resets them on restart. | |
| total_requests | Yes | Sum of every request class except llm_unavailable, which is a side signal. | |
| uptime_seconds | Yes |