Expand description
Prometheus metrics integration for MockForge
Provides a comprehensive metrics registry for tracking:
- Request counts by protocol (HTTP, gRPC, WebSocket, GraphQL)
- Request duration histograms
- Error rates and counts
- Plugin execution metrics
- System resource metrics
Re-exports§
pub use prometheus;
Structs§
- Metric
Family - Metrics
Registry - Global metrics registry for MockForge
Functions§
- get_
global_ registry - Get the global metrics registry
- metrics_
handler - Handler for the /metrics endpoint
- prometheus_
router - Create a router for the Prometheus metrics endpoint