Bird
0
0

Which Kubernetes resource is used to tell Prometheus which services to monitor?

easy📝 Syntax Q12 of 15
Kubernetes - Monitoring and Logging
Which Kubernetes resource is used to tell Prometheus which services to monitor?
AServiceMonitor
BPodMonitor
CConfigMap
DIngress
Step-by-Step Solution
Solution:
  1. Step 1: Identify Prometheus monitoring resources

    Prometheus uses special Kubernetes custom resources to know what to watch.
  2. Step 2: Recognize ServiceMonitor's role

    ServiceMonitor tells Prometheus which Kubernetes services to scrape metrics from.
  3. Final Answer:

    ServiceMonitor -> Option A
  4. Quick Check:

    ServiceMonitor selects services for Prometheus [OK]
Quick Trick: ServiceMonitor = tells Prometheus what to watch [OK]
Common Mistakes:
  • Confusing PodMonitor with ServiceMonitor
  • Using ConfigMap for monitoring targets
  • Thinking Ingress controls Prometheus scraping

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes