Coding task · NestJS course · Module 6: Error Handling and Monitoring
PrometheusService with Metrics
Create a Prometheus service with a Counter for HTTP requests and a Histogram for response time
Task
Complete the PrometheusService with an httpRequestCounter field (Counter with labelNames: ['method', 'route', 'status_code']) and httpRequestDuration (Histogram with buckets: [0.1, 0.5, 1, 2, 5, 10])