From a935df6713fc134cdf297cb2dceb15790cb43996 Mon Sep 17 00:00:00 2001 From: voorepreethi Date: Tue, 7 Jan 2025 10:20:59 +0530 Subject: [PATCH 1/3] feat: added fluent bit host relationship --- .../INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml diff --git a/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml b/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml new file mode 100644 index 000000000..327d6a8f9 --- /dev/null +++ b/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml @@ -0,0 +1,44 @@ +relationships: + - name: hostManagesFluentbit + version: "1" + origins: + - Prometheus + conditions: + - attribute: eventType + anyOf: [ "Metric" ] + - attribute: metricName + startsWith: "fluentbit_" + - attribute: source + anyOf: [ "host" ] + relationship: + expires: P75M + relationshipType: MANAGES + source: + buildGuid: + account: + lookup: true + domain: + value: INFRA + type: + value: HOST + valueInGuid: NA + identifier: + fragments: + - attribute: host.id + 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 From a739b71018437f5228d8828cc21d4ee2722921b8 Mon Sep 17 00:00:00 2001 From: voorepreethi Date: Wed, 8 Jan 2025 17:04:53 +0530 Subject: [PATCH 2/3] fix: updated type in host-to-fluentbit relationship --- relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml b/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml index 327d6a8f9..f40c6638f 100644 --- a/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml +++ b/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml @@ -33,7 +33,7 @@ relationships: domain: value: EXT type: - value: FLUENTBIT_KUBERNETES + value: FLUENTBIT_HOST identifier: fragments: - attribute: cluster_name From c502e6f12c69babbdf675b93e7ca80c1b3423935 Mon Sep 17 00:00:00 2001 From: voorepreethi Date: Wed, 8 Jan 2025 17:09:54 +0530 Subject: [PATCH 3/3] fix: changes in relationship --- relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml b/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml index f40c6638f..3d4d7aeac 100644 --- a/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml +++ b/relationships/synthesis/INFRA-HOST-to-EXT-FLUENTBIT_HOST.yml @@ -1,5 +1,5 @@ relationships: - - name: hostManagesFluentbit + - name: hostHostsFluentbit version: "1" origins: - Prometheus @@ -12,7 +12,7 @@ relationships: anyOf: [ "host" ] relationship: expires: P75M - relationshipType: MANAGES + relationshipType: HOSTS source: buildGuid: account: