Question · NestJS course · Module 12: Containers and CI/CD

The /metrics endpoint in Prometheus

What data format does the /metrics endpoint configured by @willsoto/nestjs-prometheus return?

Answer options

  • JSON with metrics nested in objects
  • XML with tags for each metric
  • Prometheus text format (# HELP, # TYPE, name{labels} value)
  • CSV with columns name, value, timestamp

You can check the correct answer by solving this task in the CodeWorlds game.