def pod_node_graph_enricher(pod_event: PodEvent, params: ResourceGraphEnricherParams):
    """
    Get a graph of a specific resource for the node the pod resides on.
    """
    pod = pod_event.get_pod()
    if not pod:
        logging.error(f"cannot run pod_node_graph_enricher on event with no pod: {pod_event}")
        return
    node = pod.get_node()
    if not node:
        logging.warning(f"Node {pod.spec.nodeName} not found for pod {pod.metadata.name}")
        return
    graph_enrichment = create_node_graph_enrichment(params, node, metrics_legends_labels=["instance"])
    pod_event.add_enrichment([graph_enrichment], enrichment_type=EnrichmentType.graph, title="Pod Resources")

    Get a graph of a specific resource for the node the pod resides on.
    
playbooks/robusta_playbooks/pod_enrichments.py