Module prometheus

Module prometheus 

Source
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§

MetricFamily
MetricsRegistry
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