From 81b005e5635bd77bf5b06faae6a037e41c67b2bc Mon Sep 17 00:00:00 2001 From: rohit-bandlamudi-nr Date: Wed, 18 Dec 2024 17:35:26 +0530 Subject: [PATCH] feat: added relationship synthesis rule from daemonset to fluentbit --- ..._DAEMONSET-to-EXT-FLUENTBIT_KUBERNETES.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 relationships/synthesis/INFRA-KUBERNETES_DAEMONSET-to-EXT-FLUENTBIT_KUBERNETES.yml diff --git a/relationships/synthesis/INFRA-KUBERNETES_DAEMONSET-to-EXT-FLUENTBIT_KUBERNETES.yml b/relationships/synthesis/INFRA-KUBERNETES_DAEMONSET-to-EXT-FLUENTBIT_KUBERNETES.yml new file mode 100644 index 000000000..9d32cbb94 --- /dev/null +++ b/relationships/synthesis/INFRA-KUBERNETES_DAEMONSET-to-EXT-FLUENTBIT_KUBERNETES.yml @@ -0,0 +1,46 @@ +relationships: + - name: k8sDaemonSetManagesFluentbit + version: "1" + origins: + - Prometheus + conditions: + - attribute: eventType + anyOf: [ "Metric" ] + - attribute: metricName + startsWith: "fluentbit_" + relationship: + expires: P75M + relationshipType: MANAGES + source: + buildGuid: + account: + lookup: true + domain: + value: INFRA + type: + value: KUBERNETES_DAEMONSET + valueInGuid: NA + identifier: + fragments: + - attribute: cluster_name + - value: ":" + - attribute: namespace + - value: ":" + - attribute: daemonset_name + hashAlgorithm: FARM_HASH + target: + buildGuid: + account: + lookup: true + domain: + value: EXT + type: + value: FLUENTBIT_KUBERNETES + identifier: + fragments: + - attribute: cluster_name + - value: ":" + - attribute: namespace + - value: ":" + - attribute: daemonset_name + hashAlgorithm: FARM_HASH \ No newline at end of file