Skip to content

Commit

Permalink
fix: fix infra-host definition so it uses the EC2 instanceId as the i…
Browse files Browse the repository at this point in the history
…dentifier of the entity (#1849)

* fix: fix infra-host definition so it uses the EC2 instanceId as the identifier of the entity

* Removed unnecessary rule for infra-host because API Polling also uses instanceId and not entityId

---------

Co-authored-by: vlopeziglesias <[email protected]>
  • Loading branch information
jsubirat and vlopeziglesias authored Jan 13, 2025
1 parent c686b4e commit 04534dd
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions entity-types/infra-host/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,28 +292,8 @@ synthesis:
entityTagNames: [hostname]
instrumentation.provider:
# AWS EC2 host synthesized via ElasticBeanstalk logs
# Legacy API Polling entities not using the ARN to compute the entity.guid, but directly providing the entityId
- identifier: entityId
name: aws.ec2.InstanceId
encodeIdentifierInGUID: false
legacyFeatures:
overrideGuidType: true
conditions:
- attribute: eventType
prefix: Log
- attribute: aws.Arn
present: true
- attribute: aws.ec2.InstanceId
present: true
- attribute: entityId
present: true
tags:
aws.Arn:
# Used in AWSEC2.yml for entity relationship candidates
aws.ec2.InstanceId:
# AWS EC2 host synthesized via ElasticBeanstalk logs
# Metrics Streams and API Polling entities using the ARN to compute the entity.guid
- identifier: aws.Arn
# Metrics Streams and API Polling entities use the instanceId to compute the entity.guid
- identifier: aws.ec2.InstanceId
name: aws.ec2.InstanceId
encodeIdentifierInGUID: true
legacyFeatures:
Expand All @@ -325,8 +305,6 @@ synthesis:
present: true
- attribute: aws.ec2.InstanceId
present: true
- attribute: entityId
present: false
tags:
aws.Arn:
# Used in AWSEC2.yml for entity relationship candidates
Expand Down

0 comments on commit 04534dd

Please sign in to comment.