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

[discovery] Apply entity events schema the discovery receiver logs #4638

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented Apr 8, 2024

This change updates the schema of the logs emitted by the discovery receiver to represent entity events. No information is dropped, but it was reshuffled to adopt for the new schema:

  • Entity ID is made of one key/value pair moved from discovery.endpoint.id resource attribute
  • All other resource attributes are moved to the entity state event attributes
  • Log body was moved to the discovery.event.message entity state attribute

The Discovery config provider is updated to use the entity events.

The keys used in the entity ID and entity attributes are not finalized and are expected to be changed in the following PRs.

@dmitryax dmitryax requested review from a team as code owners April 8, 2024 04:10
@dmitryax dmitryax force-pushed the emit-entity-events branch 6 times, most recently from 2c78796 to 0d70849 Compare April 8, 2024 07:30
@samiura
Copy link
Contributor

samiura commented Apr 8, 2024

TestDiscoveryReceiverWithHostObserverAndSimplePrometheusReceiverProvideStatusLogs -> failing.

@samiura samiura force-pushed the emit-entity-events branch from 0d70849 to eafebf2 Compare April 8, 2024 23:43
@samiura
Copy link
Contributor

samiura commented Apr 8, 2024

TestDiscoveryReceiverWithHostObserverAndSimplePrometheusReceiverProvideStatusLogs -> failing.

Rebasing....

@dmitryax dmitryax force-pushed the emit-entity-events branch 5 times, most recently from d3398fe to 2c70ca2 Compare April 9, 2024 09:01
This change updates the schema of the logs emitted by the discovery receiver to represent entity events. No information is dropped, but it was reshuffled to adopt for the new schema:
- Entity ID is made of one key/value pair moved from `discovery.endpoint.id` resource attribute
- All other resource attributes are moved to the entity state event attributes
- Log body was moved to the `discovery.event.message` entity state attribute

The Discovery config provider is updated to use the entity events.

The keys used in the entity ID and entity attributes are not finalized and are expected to be changed in the following PRs.
@dmitryax dmitryax force-pushed the emit-entity-events branch from 622b83e to b6a351d Compare April 10, 2024 06:30
@dmitryax dmitryax merged commit f966fd5 into main Apr 11, 2024
28 checks passed
@dmitryax dmitryax deleted the emit-entity-events branch April 11, 2024 06:39
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants