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

Add manual instrumentation support #1931

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions relationships/candidates/AWSMQBROKER_EXPLICIT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
category: AWSMQBROKER_EXPLICIT
lookups:
- entityTypes:
- domain: INFRA
type: AWSMQBROKER
tags:
matchingMode: ALL
predicates:
- tagKeys: ["aws.Arn"]
field: cloudResourceId
onMatch:
onMultipleMatches: RELATE_ALL
onMiss:
action: CREATE_UNINSTRUMENTED
uninstrumented:
type: MQBROKER
36 changes: 36 additions & 0 deletions relationships/synthesis/EXT-SERVICE-to-INFRA-AWSMQBROKER.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ relationships:
- attribute: net.peer.name
present: true
regex: "^[^\\.]+\\.mq\\.[^\\.]+\\.amazonaws\\.com"
- attribute: newrelic.aws_metric_streams.arn
present: false
relationship:
expires: P75M
relationshipType: CONSUMES
Expand Down Expand Up @@ -50,6 +52,8 @@ relationships:
- attribute: net.peer.name
present: true
regex: "^[^\\.]+\\.mq\\.[^\\.]+\\.amazonaws\\.com"
- attribute: newrelic.aws_metric_streams.arn
present: false
relationship:
expires: P75M
relationshipType: PRODUCES
Expand Down Expand Up @@ -82,6 +86,8 @@ relationships:
- attribute: server.address
present: true
regex: "^[^\\.]+\\.mq\\.[^\\.]+\\.amazonaws\\.com"
- attribute: newrelic.aws_metric_streams.arn
present: false
relationship:
expires: P75M
relationshipType: CONSUMES
Expand Down Expand Up @@ -114,6 +120,8 @@ relationships:
- attribute: server.address
present: true
regex: "^[^\\.]+\\.mq\\.[^\\.]+\\.amazonaws\\.com"
- attribute: newrelic.aws_metric_streams.arn
present: false
relationship:
expires: P75M
relationshipType: PRODUCES
Expand All @@ -126,3 +134,31 @@ relationships:
fields:
- field: endpoint
attribute: server.address

- name: extServiceCallsAwsMqBroker_Explicit
version: "1"
origins:
- Distributed Tracing
- OpenTelemetry
conditions:
- attribute: eventType
anyOf: [ "Span", "Log" ]
- attribute: newrelic.source
anyOf: [ "api.traces.otlp", "api.logs.otlp" ]
- attribute: entity.type
anyOf: [ "SERVICE" ]
- attribute: newrelic.aws_metric_streams.arn
regex: "^arn:aws:mq:([^:]*):([^:]*):broker/([^:]*)"
present: true
relationship:
expires: P75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSMQBROKER_EXPLICIT
fields:
- field: cloudResourceId
attribute: newrelic.aws_metric_streams.arn