System Overview - Metrics collection
This system collects and stores metrics from various services to monitor performance and health. It must handle high volumes of data, provide near real-time insights, and support querying for analysis.
This system collects and stores metrics from various services to monitor performance and health. It must handle high volumes of data, provide near real-time insights, and support querying for analysis.
User Services
|
v
Load Balancer
|
v
API Gateway
|
v
Metrics Collector Service
|
v
Message Queue
|
v
Metrics Processor Service
|
v
Time-Series Database
|
v
Cache
|
v
Dashboard/UICOUNT, SUM, and AVG in metrics collection?Orders?COUNT(*) inside SELECT.COUNT(*) correctly. Others have syntax errors or wrong functions.Sales with columns amount and region, what will this query return?SELECT AVG(amount) FROM Sales WHERE region = 'East';
amount values.SELECT SUM(amount) FROM Sales WHERE region == 'West';
customer_id.COUNT(*) > 5 to keep only customers with more than 5 orders.AVG(amount) in SELECT to get average per filtered customer group.Pass the test and this pattern moves unknown