Skip to content

Commit

Permalink
fix: Added redshift cluster relation created
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaykonatala committed Nov 28, 2024
1 parent a128745 commit cf0444b
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
16 changes: 16 additions & 0 deletions relationships/candidates/AWSREDSHIFTCLUSTER.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
24 changes: 24 additions & 0 deletions relationships/synthesis/EXT-SERVICE-to-INFRA-REDSHIFTCLUSTER.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cf0444b

Please sign in to comment.