Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/playbook-reference/actions/event-enrichment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ These actions can add context to any node-related event, be it from ``on_prometh

.. robusta-action:: playbooks.robusta_playbooks.node_enrichments.node_graph_enricher

.. robusta-action:: playbooks.robusta_playbooks.node_enrichments.node_dmesg_enricher

.. robusta-action:: playbooks.robusta_playbooks.node_cpu_analysis.node_cpu_enricher

.. .. robusta-action:: playbooks.robusta_playbooks.node_enrichments.node_health_watcher
Expand All @@ -42,6 +44,8 @@ These actions can add context to any pod-related event, be it from ``on_promethe

.. robusta-action:: playbooks.robusta_playbooks.pod_troubleshooting.pod_ps

.. robusta-action:: playbooks.robusta_playbooks.pod_enrichments.pod_dmesg_enricher

.. robusta-action:: playbooks.robusta_playbooks.image_pull_backoff_enricher.image_pull_backoff_reporter


Expand Down
1 change: 1 addition & 0 deletions helm/robusta/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ lightActions:
- delete_job
- list_resource_names
- node_dmesg_enricher
- pod_dmesg_enricher
- status_enricher
- krr_scan
- popeye_scan
Expand Down
4 changes: 3 additions & 1 deletion playbooks/robusta_playbooks/node_enrichments.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ def node_status_enricher(event: NodeEvent):
@action
def node_dmesg_enricher(event: NodeEvent, params: PodRunningParams):
"""
Gets the dmesg from a node
Get the kernel ring buffer messages (dmesg) from the event's node.

The output is attached to the finding as a file named ``dmesg.log``.
"""
node = event.get_node()
if not node:
Expand Down
6 changes: 4 additions & 2 deletions playbooks/robusta_playbooks/pod_enrichments.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ def pod_node_graph_enricher(pod_event: PodEvent, params: ResourceGraphEnricherPa
@action
def pod_dmesg_enricher(pod_event: PodEvent, params: PodRunningParams):
"""
Gets the dmesg from a node
Get the kernel ring buffer messages (dmesg) from the node that hosts the event's pod.

The output is attached to the finding as a file named ``dmesg.log``.
"""
pod = pod_event.get_pod()
if not pod:
logging.error(f"cannot run pod_node_graph_enricher on event with no pod: {pod_event}")
logging.error(f"cannot run pod_dmesg_enricher on event with no pod: {pod_event}")
return
node = pod.get_node()
if not node:
Expand Down