From 280bf542ec663594b1c312d39d6fa85ceda23830 Mon Sep 17 00:00:00 2001 From: Max A Date: Sat, 7 Sep 2024 03:57:29 -0400 Subject: [PATCH] add relationship for k8s pod and host for otel (#1719) Co-authored-by: manuelrodriguez-nr <113110223+manuelrodriguez-nr@users.noreply.github.com> --- .../INFRA-HOST-to-INFRA-KUBERNETES_POD.yml | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/relationships/synthesis/INFRA-HOST-to-INFRA-KUBERNETES_POD.yml b/relationships/synthesis/INFRA-HOST-to-INFRA-KUBERNETES_POD.yml index 57a04ea55..ed4af250f 100644 --- a/relationships/synthesis/INFRA-HOST-to-INFRA-KUBERNETES_POD.yml +++ b/relationships/synthesis/INFRA-HOST-to-INFRA-KUBERNETES_POD.yml @@ -18,4 +18,26 @@ relationships: extractGuid: attribute: entityGuid entityType: - value: KUBERNETES_POD \ No newline at end of file + value: KUBERNETES_POD + - name: k8sHostContainsPodOtel + version: "1" + origins: + - Kubernetes Integration + conditions: + - attribute: eventType + value: Metric + - attribute: entity.type + value: KUBERNETES_POD + relationship: + expires: P75M + relationshipType: CONTAINS + source: + extractGuid: + attribute: host.guid + entityType: + value: HOST + target: + extractGuid: + attribute: entityGuid + entityType: + value: KUBERNETES_POD \ No newline at end of file