From 91a69df9c8f63bb0afc2510792631f8ed57c332e Mon Sep 17 00:00:00 2001 From: Vinay Kumar Konatala Date: Fri, 25 Oct 2024 14:27:42 +0530 Subject: [PATCH 1/8] feat: Added kiness delivery stream --- .../candidates/AWSKINESISDELIVERYSTREAM.yml | 16 ++++++++++++++++ ...XT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100644 relationships/candidates/AWSKINESISDELIVERYSTREAM.yml create mode 100644 relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml diff --git a/relationships/candidates/AWSKINESISDELIVERYSTREAM.yml b/relationships/candidates/AWSKINESISDELIVERYSTREAM.yml new file mode 100644 index 000000000..0eb76f705 --- /dev/null +++ b/relationships/candidates/AWSKINESISDELIVERYSTREAM.yml @@ -0,0 +1,16 @@ +category: AWSKINESISDELIVERYSTREAM +lookups: + - entityTypes: + - domain: INFRA + type: AWSKINESISDELIVERYSTREAM + tags: + matchingMode: ALL + predicates: + - tagKeys: ["aws.arn"] + field: cloudResourceId + onMatch: + onMultipleMatches: RELATE_ALL + onMiss: + action: CREATE_UNINSTRUMENTED + uninstrumented: + type: AWSKINESISDELIVERYSTREAM \ No newline at end of file diff --git a/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml b/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml new file mode 100644 index 000000000..8bcab8c47 --- /dev/null +++ b/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml @@ -0,0 +1,10 @@ +relationships: + - name: extServiceCallsInfraKinesisDeliveryStream + version: "1" + origins: + - Distributed Tracing + conditions: + - attribute: eventType + anyOf: [ "Span" ] + - attribute: rpc.service + anyOf: [ "kinesis" ] \ No newline at end of file From ca29b24bdf88db6e279b6fb881e9f19651087fdb Mon Sep 17 00:00:00 2001 From: Vinay Kumar Konatala Date: Tue, 29 Oct 2024 11:50:46 +0530 Subject: [PATCH 2/8] feat: Added relationship condition --- ...SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml diff --git a/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml b/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml new file mode 100644 index 000000000..112fefb55 --- /dev/null +++ b/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml @@ -0,0 +1,22 @@ +relationships: + - name: extServiceCallsInfraKinesisDeliveryStream + version: "1" + origins: + - Distributed Tracing + conditions: + - attribute: eventType + anyOf: [ "Span" ] + - attribute: rpc.service + anyOf: [ "kinesis", Firehose ] + relationship: + expires: P75M + relationshipType: CALLS + source: + extractGuid: + attribute: entity.guid + target: + lookupGuid: + candidateCategory: AWSKINESISDELIVERYSTREAM + fields: + - field: cloudResourceId + attribute: cloud.resource_id \ No newline at end of file From 233e9a5d3964f133b0d795334bc47e7e44972a9c Mon Sep 17 00:00:00 2001 From: Vinay Kumar Konatala Date: Tue, 29 Oct 2024 14:47:51 +0530 Subject: [PATCH 3/8] fix: Added apm kinesis relation file --- .../APM-APPLICATION-to-INFRA-KINESIS.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 relationships/synthesis/APM-APPLICATION-to-INFRA-KINESIS.yml diff --git a/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESIS.yml b/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESIS.yml new file mode 100644 index 000000000..2f8da1490 --- /dev/null +++ b/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESIS.yml @@ -0,0 +1,24 @@ +relationships: + - name: AWSKINESISSTREAM + version: "1" + origins: + - Distributed Tracing + conditions: + - attribute: eventType + anyOf: [ "Span" ] + - attribute: cloud.platform + anyOf: [ "aws_kinesis_data_streams"] + - attribute: cloud.resource_id + regex: "^arn:aws:kinesis:([^:]*):([^:]*):stream:([^:]*)" + relationship: + expires: P75M + relationshipType: CALLS + source: + extractGuid: + attribute: entity.guid + target: + lookupGuid: + candidateCategory: AWSKINESISSTREAM + fields: + - field: cloudResourceId + attribute: cloud.resource_id \ No newline at end of file From bce08df30bc6f344fae4dcb1ae490779da564e1b Mon Sep 17 00:00:00 2001 From: Vinay Kumar Konatala Date: Tue, 29 Oct 2024 14:56:07 +0530 Subject: [PATCH 4/8] fix:Removed apm relation file --- .../APM-APPLICATION-to-INFRA-KINESIS.yml | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 relationships/synthesis/APM-APPLICATION-to-INFRA-KINESIS.yml diff --git a/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESIS.yml b/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESIS.yml deleted file mode 100644 index 2f8da1490..000000000 --- a/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESIS.yml +++ /dev/null @@ -1,24 +0,0 @@ -relationships: - - name: AWSKINESISSTREAM - version: "1" - origins: - - Distributed Tracing - conditions: - - attribute: eventType - anyOf: [ "Span" ] - - attribute: cloud.platform - anyOf: [ "aws_kinesis_data_streams"] - - attribute: cloud.resource_id - regex: "^arn:aws:kinesis:([^:]*):([^:]*):stream:([^:]*)" - relationship: - expires: P75M - relationshipType: CALLS - source: - extractGuid: - attribute: entity.guid - target: - lookupGuid: - candidateCategory: AWSKINESISSTREAM - fields: - - field: cloudResourceId - attribute: cloud.resource_id \ No newline at end of file From d2dd934747e21a924ccede9d81ea1327240b9656 Mon Sep 17 00:00:00 2001 From: Vinay Kumar Konatala Date: Tue, 12 Nov 2024 14:28:43 +0530 Subject: [PATCH 5/8] fix: Add new condition --- .../synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml b/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml index 112fefb55..318aa85d4 100644 --- a/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml +++ b/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml @@ -6,8 +6,11 @@ relationships: conditions: - attribute: eventType anyOf: [ "Span" ] + - attribute: instrumentation.provider + anyOf: [ "opentelemetry" ] - attribute: rpc.service - anyOf: [ "kinesis", Firehose ] + anyOf: [ Firehose ] + relationship: expires: P75M relationshipType: CALLS From 8f27b46f94151891df24acc5bbf5d4e5152db402 Mon Sep 17 00:00:00 2001 From: Vinay Kumar Konatala Date: Tue, 12 Nov 2024 14:48:06 +0530 Subject: [PATCH 6/8] feat: created apm to kinesis delivery stream realationship --- ...CATION-to-INFRA-KINESSISDELIVERYSTREAM.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 relationships/synthesis/APM-APPLICATION-to-INFRA-KINESSISDELIVERYSTREAM.yml diff --git a/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESSISDELIVERYSTREAM.yml b/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESSISDELIVERYSTREAM.yml new file mode 100644 index 000000000..91dcb5850 --- /dev/null +++ b/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESSISDELIVERYSTREAM.yml @@ -0,0 +1,24 @@ +relationships: + - name: apmCallsInfraKinesisDeliveryStream + version: "1" + origins: + - Distributed Tracing + conditions: + - attribute: eventType + anyOf: [ "Span" ] + - attribute: cloud.platform + anyOf: [ "aws_lambda"] + - attribute: cloud.resource_id + regex: "^arn:aws:firehose:([^:]*):([^:]*):deliverystream\/([^:]*)" + relationship: + expires: P75M + relationshipType: CALLS + source: + extractGuid: + attribute: entity.guid + target: + lookupGuid: + candidateCategory: AWSKINESISDELIVERYSTREAM + fields: + - field: cloudResourceId + attribute: cloud.resource_id \ No newline at end of file From 61d51a218ccee2fe844b6bebcb5ef5d53a6a1e49 Mon Sep 17 00:00:00 2001 From: Vinay Kumar Konatala Date: Tue, 12 Nov 2024 14:59:13 +0530 Subject: [PATCH 7/8] fix:Removed Otel related relationship file --- ...SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml diff --git a/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml b/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml deleted file mode 100644 index 318aa85d4..000000000 --- a/relationships/synthesis/EXT-SERVICE-to-INFRA-KINESISDELIVERYSTREAM.yml +++ /dev/null @@ -1,25 +0,0 @@ -relationships: - - name: extServiceCallsInfraKinesisDeliveryStream - version: "1" - origins: - - Distributed Tracing - conditions: - - attribute: eventType - anyOf: [ "Span" ] - - attribute: instrumentation.provider - anyOf: [ "opentelemetry" ] - - attribute: rpc.service - anyOf: [ Firehose ] - - relationship: - expires: P75M - relationshipType: CALLS - source: - extractGuid: - attribute: entity.guid - target: - lookupGuid: - candidateCategory: AWSKINESISDELIVERYSTREAM - fields: - - field: cloudResourceId - attribute: cloud.resource_id \ No newline at end of file From 97ba5829c735453fd8e0e50c34a4ab1b800a1766 Mon Sep 17 00:00:00 2001 From: Vinay Kumar Konatala Date: Thu, 21 Nov 2024 12:43:07 +0530 Subject: [PATCH 8/8] Updated the cloud platform attribute --- .../APM-APPLICATION-to-INFRA-KINESSISDELIVERYSTREAM.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESSISDELIVERYSTREAM.yml b/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESSISDELIVERYSTREAM.yml index 91dcb5850..c7ac946f4 100644 --- a/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESSISDELIVERYSTREAM.yml +++ b/relationships/synthesis/APM-APPLICATION-to-INFRA-KINESSISDELIVERYSTREAM.yml @@ -7,7 +7,7 @@ relationships: - attribute: eventType anyOf: [ "Span" ] - attribute: cloud.platform - anyOf: [ "aws_lambda"] + anyOf: [ "aws_kinesis_delivery_streams" ] - attribute: cloud.resource_id regex: "^arn:aws:firehose:([^:]*):([^:]*):deliverystream\/([^:]*)" relationship: