-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[receiver/hostmetrics] add EntityState entity event as log record for host #33928
base: main
Are you sure you want to change the base?
Conversation
f90c610
to
4fad7e9
Compare
aaefb75
to
7a68aa2
Compare
func (hmr *hostMetricsReceiver) sendEntityEvent(ctx context.Context) { | ||
timestamp := pcommon.NewTimestampFromTime(time.Now()) | ||
|
||
out := metadataPkg.NewEntityEventsSlice() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a follow up PR we should add "Interval" as a field to the Entity events and use MetadataCollectionInterval
as the value. The "Interval" was proposed after the initial design and is now in the OTEP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree :)
9e6bcfd
to
ccd0e9a
Compare
Co-authored-by: Tigran Najaryan <[email protected]>
FYI: unit test failures seem unrelated:
|
Description:
Add EntityState event for host, implementation is similiar to k8sclusterreceiver. This change sends empty event, which can be used together with resourcedetection processor to add required attributes:
Link to tracking Issue:
#33927
Testing:
Documentation: