.NET Architecture & System Design Interview Question #148
What are metrics and which system metrics are commonly monitored?
Resilience, Rate Limiting, Health Checks & Observability Senior Advanced
Quick Interview Answer
Metrics are numeric measurements aggregated over time. They are efficient for dashboards, alerts, capacity analysis, and identifying changes in system behavior.
Detailed Explanation
Metrics are numeric measurements aggregated over time. They are efficient for dashboards, alerts, capacity analysis, and identifying changes in system behavior.
Common service metrics include request rate, error rate, latency percentiles, CPU, memory, queue depth, connection usage, cache hit ratio, and dependency performance. Business metrics can also reveal failures that technical metrics miss.
Code Example
Examples:
requests/sec
error rate
p95 latency
CPU %
memory
queue depth
DB connection usage
cache hit ratio