robusta icon indicating copy to clipboard operation
robusta copied to clipboard

Dmesg enricher (action)

Open Sheeproid opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Getting Dmesg is helpful for debugging problems on the nodes some cases, but is not always covered in the other log collections mechanism in Robusta. Also, some people are not aware dmesg so implementing this action will be a nice teaching tool!

Describe the solution you'd like A Dmesg enricher to get the Dmesg from a specific pod's node. The output should be readable as a file.

Additional context

  • Can probably be implemented in the same manner as "node_bash_enricher" for running a bash command, need to make sure to package the results in a nice FileBlock though.
  • Dmesg man page

Sheeproid avatar Sep 18 '22 13:09 Sheeproid

What type of event this action would be triggering on ? Do you want to trigger this action on a NodeEvent or a PodEvent? just making things clear.

wahajXgrid avatar Sep 18 '22 14:09 wahajXgrid

Hey @wahajXgrid . It should work on both. In case of a PodEvent, the node's identity(name, etc..) should be extracted from the pod.

Sheeproid avatar Sep 18 '22 14:09 Sheeproid