-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[EEM] Update the builtin service entity definition #187021
[EEM] Update the builtin service entity definition #187021
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/services.ts
Show resolved
Hide resolved
x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/index.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/services.ts
Show resolved
Hide resolved
x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/services.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/services.ts
Outdated
Show resolved
Hide resolved
…n-service-definition
…iltin-service-definition
x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/services.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/services.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/services.ts
Outdated
Show resolved
Hide resolved
…b/entities/built_in/services.ts Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
…b/entities/built_in/services.ts Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/constants.ts
Outdated
Show resolved
Hide resolved
], | ||
}, | ||
{ | ||
name: 'logRate', |
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.
Does this track the logRate
per minute? If so, can we rename it to make it more clear? ex logRatePerMinute
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.
Every aggregation would be per minute here that's why I didn't specify it, do you think we should add the suffix to all ?
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.
I'd vote for yes, we had some discussion about this in the API guidelines document.
Adding the unit aligns more with how ECS names fields and makes it clearer for the consumer what to expect.
It also means that if we want to change the unit we need to consider that a breaking change (or add a new field in a different unit), which is correct since the users might do further computation assuming the unit is correct.
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.
I'm not convinced from a dx standpoint, if we update the definition to aggregate over different periods or if we introduce different aggregation (ie 1m, 5m, 30m) the code relying on these aggregations would quite suffer. I'd rather add a different field that would specify the metrics periods like metricset.period
. as a working example the apm service_transaction keep the same metric field names regardless of the duration of aggregation
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.
Can you expand a bit on how the relying could would be affected by such a change? I can't see how that would be a heavy downstream change but sure, compared to using a computed value anything seems more but I think the value is that it's more clear for the consumers (end user or Kibana apps) and I'd favor that over our own DX.
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.
Code needs to change because we introduce new fields. it's just redundant information
## Summary closes 1. elastic/observability-dev#3724 (text update) 2. elastic/observability-dev#3722 (link to survey) 3. #187568 Basic workflow for enabling EEM in service inventory view The empty states will be handled in different PR - When the user clicks on "try new" we set up the builtin service entities. There is an open PR #187021 to update the definition. [1] ### with the right permissions https://github.com/elastic/kibana/assets/3369346/2d76d9ca-dc1d-417b-8f06-f2d86b75a32f ### Without the right permissions https://github.com/elastic/kibana/assets/3369346/2f2af57c-a95a-4360-b667-1eceb7229d6c ## NOTE [1] if you test this PR locally the metrics will be N/A. you need to update https://github.com/elastic/kibana/blob/bf45ddd9f4c48acea5fac61d07012110bd4f0f4b/x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/services.ts . Unless the PR 187021 is merged --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
⏳ Build in-progress
History
|
Summary
This change includes updates to the builtin service definition: