Core metrics module with tracking and aggregation