LogParserForKarpenter parses Karpenter controller logs and extracts nodeclaim information which gives additional information beside metrics
LogParserForKarpenter is an open source tool, hosted under awslabs.
It is written in Golang and uses regular expressions (regexp) to parse Karpenter controller logs for nodeclaim related information.
It allows using either STDIN (for example for piping live Karpenter controller logs) or multiple Karpenter log files as input and will print CSV style formatted output of nodeclaim data ordered by createdtime to STDOUT, so one can easily redirect it into a file and analyse with Linux commmand line tools like awk, cut or sed or advanced tools like Amazon QuickSight or Microsoft Excel.
It's origin is based on discussions with customers about Karpenter and Spot interruptions and a main concern of lacking visibility into interruption details like availability zone, instance family and type, or other attributes like node ready time, node life time etc. which currently are not fully visible in metrics.
Getting user and customer feedback, it will be developed further, probably even influencing the Karpenter team to adopt some of the log output in additional metrics or labels of already existing ones!