Question · NestJS course · Module 6: Error Handling and Monitoring
collectDefaultMetrics
What does collectDefaultMetrics() from the prom-client library do?
Answer options
- Sends metrics to Grafana
- Creates a dashboard with charts
- Resets all metrics to zero
- Collects default system metrics (CPU, memory, event loop)
You can check the correct answer by solving this task in the CodeWorlds game.