You must implement a command-line tool parse metrics that reads a log file and outputs an aggregated…
You must implement a command-line tool parse metrics that reads a log file and outputs an aggregated…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format : A text file where each line is either: - A metric entry: <timestamp <name =<value <tags - A…
The task
**Input format**: A text file where each line is either: - A metric entry: `[<timestamp>] <name>=<value> <tags>` - A comment: line starting with `#` (ignore) - A blank line (ignore) - Malformed (handle gracefully, see below)
Part of ai-and/termgrade-environments.