Combine Grafana metrics with mismatched labels
You can use PromQL label_replace function to create a new matching label from the original labels.
For instance, you can use the below expression to add a container_name="foo"
label to the first metric which can be used to do the join:
label_replace( kube_pod_container_resource_limits_memory_bytes, "container_name", "$1", "container", "(.*)")
You can use the above patern to create new labels that can be used for the matching.