diff --git a/relationships/candidates/AWSREDSHIFTCLUSTER.yml b/relationships/candidates/AWSREDSHIFTCLUSTER.yml new file mode 100644 index 000000000..465bb09a2 --- /dev/null +++ b/relationships/candidates/AWSREDSHIFTCLUSTER.yml @@ -0,0 +1,16 @@ +category: AWSREDSHIFTCLUSTER +lookups: + - entityTypes: + - domain: INFRA + type: AWSREDSHIFTCLUSTER + tags: + matchingMode: ALL + predicates: + - tagKeys: ["configuration.endpoint.address"] + field: cloudEndpointAddress + onMatch: + onMultipleMatches: RELATE_ALL + onMiss: + action: CREATE_UNINSTRUMENTED + uninstrumented: + type: AWSREDSHIFTCLUSTER \ No newline at end of file diff --git a/relationships/synthesis/APM-APPLICATION-to-INFRA-REDSHIFTCLUSTER.yml b/relationships/synthesis/APM-APPLICATION-to-INFRA-REDSHIFTCLUSTER.yml new file mode 100644 index 000000000..fa6536e0f --- /dev/null +++ b/relationships/synthesis/APM-APPLICATION-to-INFRA-REDSHIFTCLUSTER.yml @@ -0,0 +1,22 @@ +relationships: + - name: apmApplicationCallsInfraRedshiftCluster + version: "1" + origins: + - Distributed Tracing + conditions: + - attribute: eventType + anyOf: [ "Span" ] + - attribute: configuration.endpoint.address + regex: '^[a-zA-Z0-9\-]+\.c[a-z0-9]+\.([a-zA-Z0-9\-]+)\.redshift\.amazonaws\.com$' + relationship: + expires: P75M + relationshipType: CALLS + source: + extractGuid: + attribute: entity.guid + target: + lookupGuid: + candidateCategory: AWSREDSHIFTCLUSTER + fields: + - field: cloudEndpointAddress + attribute: configuration.endpoint.address \ No newline at end of file diff --git a/relationships/synthesis/EXT-SERVICE-to-INFRA-REDSHIFTCLUSTER.yml b/relationships/synthesis/EXT-SERVICE-to-INFRA-REDSHIFTCLUSTER.yml new file mode 100644 index 000000000..6af42cdd1 --- /dev/null +++ b/relationships/synthesis/EXT-SERVICE-to-INFRA-REDSHIFTCLUSTER.yml @@ -0,0 +1,24 @@ +relationships: + - name: extServiceCallsInfraRedshiftCluster + version: "1" + origins: + - Distributed Tracing + conditions: + - attribute: eventType + anyOf: [ "Span" ] + - attribute: instrumentation.provider + anyOf: [ "opentelemetry" ] + - attribute: rpc.service + anyOf: [ "Redshift" ] + relationship: + expires: P75M + relationshipType: CALLS + source: + extractGuid: + attribute: entity.guid + target: + lookupGuid: + candidateCategory: AWSREDSHIFTCLUSTER + fields: + - field: cloudEndpointAddress + attribute: configuration.endpoint.address \ No newline at end of file