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§
- Drift
Evaluation Sample - A single drift evaluation sample to feed into
MetricsRegistry::record_drift_evaluation. Borrows the string labels so callers don’t have to allocate per-request. - 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