Write a command-line tool /app/parse metrics.py that reads a UTF-8 encoded log file and produces an…
Write a command-line tool /app/parse metrics.py that reads a UTF-8 encoded log file and produces an…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: A text file where each line is either: - A comment line starting with (ignore entirely) - A blank…
The task
**Input format:** A text file where each line is either: - A comment line starting with `#` (ignore entirely) - A blank line (ignore) - A data line with pipe-separated fields: `timestamp|server_id|metric_name|value|tags` - `timestamp`: ISO 8601 format with timezone offset (e.g., `2024-01-15T08:30:00+01:00`,…
Part of ai-and/termgrade-environments.