Design a system for collecting, aggregating, and monitoring metrics (e.g., counters for local activities and operations). The scope ranges from a local library that supports metric collection and aggregation (e.g., for use within an application) to a distributed metric counter system. In some variants the problem is simplified to counting…