From 20579601cd834900453d8b37e9b558780deb351c Mon Sep 17 00:00:00 2001 From: Anshul Bisht Date: Fri, 14 Aug 2026 17:43:01 +0530 Subject: [PATCH] Document dmesg enricher actions and fix pod_dmesg_enricher log message Fixes #549 --- docs/playbook-reference/actions/event-enrichment.rst | 4 ++++ helm/robusta/values.yaml | 1 + playbooks/robusta_playbooks/node_enrichments.py | 4 +++- playbooks/robusta_playbooks/pod_enrichments.py | 6 ++++-- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/playbook-reference/actions/event-enrichment.rst b/docs/playbook-reference/actions/event-enrichment.rst index b1c176487..2e43b6dad 100644 --- a/docs/playbook-reference/actions/event-enrichment.rst +++ b/docs/playbook-reference/actions/event-enrichment.rst @@ -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 @@ -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 diff --git a/helm/robusta/values.yaml b/helm/robusta/values.yaml index 973f5bbf8..8411b7368 100644 --- a/helm/robusta/values.yaml +++ b/helm/robusta/values.yaml @@ -107,6 +107,7 @@ lightActions: - delete_job - list_resource_names - node_dmesg_enricher +- pod_dmesg_enricher - status_enricher - krr_scan - popeye_scan diff --git a/playbooks/robusta_playbooks/node_enrichments.py b/playbooks/robusta_playbooks/node_enrichments.py index 221d7c4eb..253824f12 100644 --- a/playbooks/robusta_playbooks/node_enrichments.py +++ b/playbooks/robusta_playbooks/node_enrichments.py @@ -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: diff --git a/playbooks/robusta_playbooks/pod_enrichments.py b/playbooks/robusta_playbooks/pod_enrichments.py index 94d79a5b1..954202353 100644 --- a/playbooks/robusta_playbooks/pod_enrichments.py +++ b/playbooks/robusta_playbooks/pod_enrichments.py @@ -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: