Skip to content

Commit

Permalink
rebase (#1552)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Kilimnik <[email protected]>
Co-authored-by: Javi Imbernón <[email protected]>
  • Loading branch information
benkilimnik and javimb authored Mar 15, 2024
1 parent e44b804 commit 751ec6d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
29 changes: 29 additions & 0 deletions entity-types/infra-kubernetes_pod/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,32 @@ synthesis:
created_by_kind:
# from kube-state-metrics kube_pod_info
entityTagNames: [k8s.createdKind]

- compositeIdentifier:
separator: ":"
attributes:
- k8s.cluster.name
- k8s.namespace.name
- k8s.pod.name
encodeIdentifierInGUID: true
name: k8s.pod.name
conditions:
# identifier attributes
- attribute: k8s.pod.name
present: true
- attribute: k8s.namespace.name
present: true
- attribute: k8s.cluster.name
present: true
# ebpf data
- attribute: instrumentation.provider
value: "nr_ebpf_agent"
tags:
k8s.pod.name:
entityTagNames: [k8s.podName]
k8s.namespace.name:
entityTagNames: [k8s.namespaceName]
k8s.cluster.name:
entityTagNames: [k8s.clusterName]
k8s.node.name:
entityTagNames: [k8s.nodeName]
15 changes: 15 additions & 0 deletions entity-types/infra-kubernetes_pod/tests/Span.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"protocol.name": "redis",
"instrumentation.provider": "nr_ebpf_agent",
"trace_role": "server",
"local_addr": "198.xxx.x.xx",
"local_port": "98",
"remote_addr": "192.xxx.x.xx",
"remote_port": "92",
"k8s.pod.name": "redis-0",
"k8s.namespace.name": "default",
"k8s.cluster.name": "k8s-cluster",
"newrelic.source": "api.traces.otlp"
}
]

0 comments on commit 751ec6d

Please sign in to comment.