Bird
0
0

You want to create a Grafana dashboard showing CPU and memory usage for all Docker containers, but only some containers appear. What is the best way to fix this?

hard📝 Workflow Q8 of 15
Docker - Logging and Monitoring
You want to create a Grafana dashboard showing CPU and memory usage for all Docker containers, but only some containers appear. What is the best way to fix this?
ARestart Grafana service to refresh dashboards
BUpdate Prometheus relabeling rules to include all container labels
CIncrease Docker container CPU limits
DChange Grafana dashboard theme to default
Step-by-Step Solution
Solution:
  1. Step 1: Understand relabeling in Prometheus

    Relabeling controls which metrics are kept or dropped based on labels.
  2. Step 2: Fix missing containers by adjusting relabeling

    Updating relabeling rules to include all container labels ensures all containers appear in Grafana.
  3. Final Answer:

    Update Prometheus relabeling rules to include all container labels -> Option B
  4. Quick Check:

    Relabeling controls visible containers in Grafana [OK]
Quick Trick: Adjust Prometheus relabeling to show all containers [OK]
Common Mistakes:
  • Restarting Grafana without fixing data source
  • Changing container CPU limits unrelated to visibility
  • Changing dashboard theme does not affect data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes