diff --git a/relationships/synthesis/EXT_INFRA-DOCKER_CONTAINER-to-EXT-SERVICE.yml b/relationships/synthesis/EXT_INFRA-DOCKER_CONTAINER-to-EXT-SERVICE.yml new file mode 100644 index 000000000..e0336b4cd --- /dev/null +++ b/relationships/synthesis/EXT_INFRA-DOCKER_CONTAINER-to-EXT-SERVICE.yml @@ -0,0 +1,30 @@ +relationships: + - name: extInfraDockerContainerEXTService + version: "1" + origins: + - OpenTelemetry + conditions: + - attribute: eventType + anyOf: [ "Metric" ] + - attribute: entity.type + anyOf: ["SERVICE"] + 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: + attribute: entity.type diff --git a/relationships/synthesis/INFRA_DOCKER_CONTAINER-to-EXT_SERVICE.yml b/relationships/synthesis/INFRA_DOCKER_CONTAINER-to-EXT_SERVICE.yml deleted file mode 100644 index 64c9a1741..000000000 --- a/relationships/synthesis/INFRA_DOCKER_CONTAINER-to-EXT_SERVICE.yml +++ /dev/null @@ -1,59 +0,0 @@ -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" \ No newline at end of file