Which of the following best describes the primary purpose of metrics in monitoring microservices?
Think about what numbers like CPU usage or request counts represent.
Metrics are aggregated numerical data points collected over time to monitor system health and performance trends.
You notice a user request failed in your microservices system. Which pillar should you consult first to find detailed information about the error and its context?
Consider which pillar records detailed messages about what happened.
Logs contain detailed records of events and errors, making them the best source for debugging specific failures.
Your microservices system handles millions of requests per minute. You want to collect traces to understand request flows without overwhelming storage or processing. Which approach is best?
Think about balancing data volume and usefulness.
Sampling a small percentage of requests reduces data volume while still providing useful trace insights.
When setting up alerts for your microservices, what is a key tradeoff between using logs versus metrics?
Consider speed and detail in alerting.
Metrics allow quick, efficient alerts but lack detailed context; logs provide rich detail but are expensive to analyze in real-time.
Your microservices system generates the following per minute: 10 million requests, 100 metrics per service per minute (50 services), and 1 log entry per request. Estimate the relative daily storage needed for logs, metrics, and traces assuming traces are collected for 1% of requests and each trace is 10 times the size of a log entry.
Calculate logs as requests × log size × minutes per day; metrics as metrics × services × minutes per day; traces as 1% of requests × 10 × log size × minutes per day.
Logs dominate storage due to volume; metrics are small; traces are fewer but larger per item.