Skip to content

Instantly share code, notes, and snippets.

@deniszh
Created February 6, 2020 10:04
Show Gist options
  • Save deniszh/b4b043ac3c8bf4d8fa54f6d885f6629a to your computer and use it in GitHub Desktop.
Save deniszh/b4b043ac3c8bf4d8fa54f6d885f6629a to your computer and use it in GitHub Desktop.
counter processes_oom_killed_total
counter processes_oom_killed_by_name by label
/Killed process (\d+) \((\S+)\) total-vm:\d+kB, anon-rss:\d+kB, file-rss:\d+kB$/ {
processes_oom_killed_total++
processes_oom_killed_by_name[$2]++
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment