Bird
0
0

To effectively alert on high CPU usage in a Kubernetes cluster, which setup is recommended?

hard📝 Workflow Q8 of 15
Kubernetes - Monitoring and Logging
To effectively alert on high CPU usage in a Kubernetes cluster, which setup is recommended?
ASet up alerts only on pod CPU usage ignoring node metrics
BRely solely on <code>kubectl top nodes</code> output for manual checks
CUse Prometheus to scrape node metrics and configure Alertmanager with CPU usage thresholds
DUse Kubernetes events to trigger CPU alerts
Step-by-Step Solution
Solution:
  1. Step 1: Understand monitoring tools

    Prometheus is widely used to collect metrics including node CPU usage.
  2. Step 2: Alerting mechanism

    Alertmanager works with Prometheus to send alerts based on defined thresholds.
  3. Step 3: Why other options fail

    Manual checks are not scalable; ignoring node metrics misses cluster-wide issues; Kubernetes events don't provide detailed CPU metrics.
  4. Final Answer:

    Use Prometheus to scrape node metrics and configure Alertmanager with CPU usage thresholds -> Option C
  5. Quick Check:

    Prometheus + Alertmanager is best practice for CPU alerts [OK]
Quick Trick: Combine Prometheus metrics with Alertmanager alerts [OK]
Common Mistakes:
  • Relying on manual kubectl commands for alerts
  • Ignoring node-level metrics
  • Using Kubernetes events for CPU usage alerts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes