Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding regex pattern to the APM-to-Elasticsearch relationship configuration #1796

Merged
merged 8 commits into from
Dec 4, 2024
8 changes: 2 additions & 6 deletions relationships/candidates/AWSELASTICSEARCHCLUSTER.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ lookups:
tags:
matchingMode: ALL
predicates:
- tagKeys: ["aws.accountId"]
field: awsAccountId
- tagKeys: ["aws.region"]
field: awsRegion
- tagKeys: ["displayName"]
field: awsElasticsearchDomainName
- tagKeys: ["aws.es.DomainEndpoint"]
field: endpoint
onMatch:
onMultipleMatches: RELATE_ALL
onMiss:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
relationships:
- name: apmServiceCallsElasticsearch
version: "1"
origins:
- Distributed Tracing
conditions:
- attribute: eventType
anyOf: [ "Span" ]
- attribute: server.address
regex: ^search-[a-zA-Z0-9-]+-[a-zA-Z0-9]+\.([a-zA-Z0-9-]+)\.es\.amazonaws\.com$
relationship:
expires: P75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSELASTICSEARCHCLUSTER
fields:
- field: endpoint
attribute: server.address
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
relationships:
- name: extServiceCallsElasticsearch
version: "1"
origins:
- Distributed Tracing
conditions:
- attribute: eventType
anyOf: [ "Span" ]
- attribute: db.system
anyOf: [ "elasticsearch" ]
relationship:
expires: P75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSELASTICSEARCHCLUSTER
fields:
- field: endpoint
attribute: server.address
Loading