Bird
0
0

What is the primary role of Prometheus in a Spring Boot application monitoring setup?

easy📝 Conceptual Q11 of 15
Spring Boot - Actuator
What is the primary role of Prometheus in a Spring Boot application monitoring setup?
ATo collect metrics by scraping the application's exposed endpoint
BTo visualize metrics using dashboards
CTo expose application metrics automatically
DTo send alerts directly to users
Step-by-Step Solution
Solution:
  1. Step 1: Understand Prometheus function

    Prometheus collects metrics by scraping HTTP endpoints exposed by applications.
  2. Step 2: Differentiate roles of tools

    Grafana is used for visualization, not collection. Spring Boot exposes metrics but does not collect them.
  3. Final Answer:

    To collect metrics by scraping the application's exposed endpoint -> Option A
  4. Quick Check:

    Prometheus collects metrics = A [OK]
Quick Trick: Remember: Prometheus scrapes, Grafana shows [OK]
Common Mistakes:
  • Confusing Grafana as the collector
  • Thinking Spring Boot collects metrics
  • Assuming Prometheus sends alerts directly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes