Description
The agent service should expose Prometheus metrics for monitoring and alerting.
Current State
- No metrics endpoint
- Cannot monitor request latency
- Cannot track error rates
Expected Behavior
- Expose
/metrics endpoint
- Track request duration histogram
- Track error rate counter
- Track OpenAI API usage
- Track Stellar RPC latency
Files Affected
agent/src/
agent/package.json (add prom-client dependency)
Description
The agent service should expose Prometheus metrics for monitoring and alerting.
Current State
Expected Behavior
/metricsendpointFiles Affected
agent/src/agent/package.json(add prom-client dependency)