YeagerAI-Bulat / genlayer-simulator

MIT License
0 stars 0 forks source link

Add /metrics endpoint to expose Prometheus metrics #4

Open mentatbot[bot] opened 1 month ago

mentatbot[bot] commented 1 month ago

Implemented a new /metrics endpoint to enhance observability by exposing application metrics in Prometheus format. This includes tracking the total number of requests with a Counter, monitoring active connections with a Gauge, and measuring request durations with a Histogram. Integrated the prometheus_client library to facilitate metric collection and added a decorator to wrap RPC endpoints for automatic metric collection. Also included an integration test to verify the /metrics endpoint functionality.

Closes #3

Thanks for using MentatBot. Give comments a :+1: or :-1: to help me improve!