Skip to content

Commit

Permalink
feat: Fix src attribute for pod name (#1772)
Browse files Browse the repository at this point in the history
* feat: Update src attribute for pod name

* fix: Readd missing test key

---------

Co-authored-by: Otávio Carvalho <[email protected]>
  • Loading branch information
douavue and otaviocarvalho authored Jan 15, 2025
1 parent ea58eaf commit 52eb311
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entity-types/infra-kubernetes_pod/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -14,6 +15,7 @@
{
"k8s.cluster.name": "universe",
"namespace": "solar-system",
"k8s.pod.name": "earth",
"pod": "earth",
"newrelic.source": "api.metrics.otlp",
"newrelicOnly": "true",
Expand Down

0 comments on commit 52eb311

Please sign in to comment.