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!
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 theprometheus_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!