diff --git a/entity-types/infra-kubernetes_pod/definition.yml b/entity-types/infra-kubernetes_pod/definition.yml index bb526a492..33d9c568e 100644 --- a/entity-types/infra-kubernetes_pod/definition.yml +++ b/entity-types/infra-kubernetes_pod/definition.yml @@ -55,6 +55,8 @@ synthesis: entityTagNames: [k8s.clusterName] k8s.deployment.name: entityTagNames: [k8s.deploymentName] + k8s.pod.name: + entityTagNames: [k8s.podName] node: # from kube-state-metrics kube_pod_info entityTagNames: [k8s.nodeName] @@ -63,9 +65,7 @@ synthesis: entityTagNames: [k8s.createdBy] created_by_kind: # from kube-state-metrics kube_pod_info - entityTagNames: [k8s.createdKind] - podName: - entityTagNames: [k8s.podName] + entityTagNames: [k8s.createdKind] # Infrastructure event data via opentelemetry - compositeIdentifier: diff --git a/entity-types/infra-kubernetes_pod/tests/k8s-ksm-via-opentelemetry-prometheus-receiver.json b/entity-types/infra-kubernetes_pod/tests/k8s-ksm-via-opentelemetry-prometheus-receiver.json index 39e067af0..09246449b 100644 --- a/entity-types/infra-kubernetes_pod/tests/k8s-ksm-via-opentelemetry-prometheus-receiver.json +++ b/entity-types/infra-kubernetes_pod/tests/k8s-ksm-via-opentelemetry-prometheus-receiver.json @@ -2,6 +2,7 @@ { "k8s.cluster.name": "farm", "namespace": "orchards", + "k8s.pod.name": "tree-afge", "pod": "tree-afge", "newrelic.source": "api.metrics.otlp", "newrelicOnly": "true", @@ -14,6 +15,7 @@ { "k8s.cluster.name": "universe", "namespace": "solar-system", + "k8s.pod.name": "earth", "pod": "earth", "newrelic.source": "api.metrics.otlp", "newrelicOnly": "true",