Summarize DW triaging results

At the moment we're simply outputting snippets of the logs where we labeled error lines, when triaging DW results.

Implement summarizing those results in a more human-friendly, and most-of-all shorter way. Short enough, so we could put the most important facts in a short snippet on a DW page.

Ideas:

  • Prioritize located issues (kwai.labels has priorities), and show more important first.
  • Give a human-readable (but short) explanation of the issue/label type, without going into implementation details. Something like: "Potential kernel issues:" instead of "Log lines labelled error.kernel".
  • Group the exact same line found in the same log and specify number of occurrences
  • Group and truncate same-type issues
  • Output only the exact line for each error, without context, and link to the exact spot in the log from it.
  • Prioritize by confidence as well (not yet available in the library, but can be added). E.g. multiply issue priority and confidence weight. So more confident or more critical issues are surfaced.
  • And so on...

Jira: CKI-7000

Edited by Tales da Aparecida