Skip to content

Commit

Permalink
feat: Docker Infra container to EXT service (newrelic#1711)
Browse files Browse the repository at this point in the history
* feat: Infra container to EXT service relationship

* fix: Review comments addressed

* fix: Review comments addressed

* fix: Review comments addressed
  • Loading branch information
kolaarun authored Jul 30, 2024
1 parent 376efaf commit d0e9369
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 30 deletions.

This file was deleted.

59 changes: 59 additions & 0 deletions relationships/synthesis/INFRA_DOCKER_CONTAINER-to-EXT_SERVICE.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
relationships:
# infra metrics from oTel dockerstats receiver
- name: extInfraDockerContainerEXTService
version: "1"
origins:
- OpenTelemetry
conditions:
- attribute: eventType
anyOf: [ "Metric" ]
relationship:
expires: P75M
relationshipType: HOSTS
source:
buildGuid:
account:
attribute: accountId
domain:
value: INFRA
type:
value: CONTAINER
identifier:
fragments:
- attribute: container.id
hashAlgorithm: FARM_HASH
target:
extractGuid:
attribute: entity.guid
entityType:
value: "SERVICE"
# infra metrics from NR infra agent
- name: nrInfraDockerContainerEXTService
version: "1"
origins:
- OpenTelemetry
conditions:
- attribute: eventType
anyOf: [ "Metric" ]
relationship:
expires: P75M
relationshipType: HOSTS
source:
buildGuid:
account:
attribute: accountId
domain:
value: INFRA
type:
value: CONTAINER
valueInGuid: NA
identifier:
fragments:
- value: "docker:"
- attribute: container.id
hashAlgorithm: FARM_HASH
target:
extractGuid:
attribute: entity.guid
entityType:
value: "SERVICE"

0 comments on commit d0e9369

Please sign in to comment.