Coding task · NestJS course · Module 12: Containers and CI/CD

Using metrics in a NestJS service

Complete the NestJS service with Counter and Histogram from Prometheus.

Task

Inject metrics via @InjectMetric, use requestsCounter.inc() and requestDuration.startTimer() / timer()