-
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
[Logs onboarding] Removing custom_logs from routes and making them more generic #162706
[Logs onboarding] Removing custom_logs from routes and making them more generic #162706
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
33e9a52
to
936413d
Compare
4ca872e
to
ae48838
Compare
e78cfcb
to
83aaaa6
Compare
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.
LGTM, a few suggestions, but non blocking.
@@ -2249,6 +2249,9 @@ | |||
}, | |||
"observability-onboarding-state": { |
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.
Might be useful to rename this observability-onboarding-state
to observability-onboarding-flow
to match the new pattern for routes.
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 tried to rename the savedObject but got the following error
Removing mapped properties is disallowed >8.8
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.
ah ok...well it's more of a cosmetic thing i guess. i figured now would be the time since it's technically still not released yet.
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.
It's not released to serverless yet but I believe modifying the name of a saved object will trigger a more expensive migration that affects customers. This is mainly a problem for heavy users of cases and/or alerts. CC @gsoldevila
That being said, I think it'd be good to get some "practice" of what it'd be like to be running a live service so I agree with the decision to rather forgo the cosmetic change :)
x-pack/plugins/observability_onboarding/server/routes/flow/route.ts
Outdated
Show resolved
Hide resolved
e7d4878
to
162ae28
Compare
162ae28
to
b02287b
Compare
@@ -2249,6 +2249,9 @@ | |||
}, | |||
"observability-onboarding-state": { |
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.
It's not released to serverless yet but I believe modifying the name of a saved object will trigger a more expensive migration that affects customers. This is mainly a problem for heavy users of cases and/or alerts. CC @gsoldevila
That being said, I think it'd be good to get some "practice" of what it'd be like to be running a live service so I agree with the decision to rather forgo the cosmetic change :)
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.
(nit) you are renaming the APIs from custom_logs
to logs
, what about the folder names ? Do you still want to keep them as custom_logs ?
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.
Yes, in the server we identified the reusability of the endpoints specifically from the elastic-agent
but in the front the separation is still needed. In the server most of the generic endpoints (the one used by the agent) were moved to route flow
while the specifics to logs remain in logs/*
.
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.
LGTM 👍🏼
💚 Build Succeeded
Metrics [docs]Async chunks
Saved Objects .kibana field count
History
To update your PR or re-run it, just comment with: |
…re generic (elastic#162706) This PR is a preparation work for elastic#154929. ### Changes: - Rearranged code to make routes more generic (Most of the changes). - Added `type` to onboarding savedObject. - Removed `status` route since it was not being used.
…62972) Closes #154929. This PR along with #162654, #162706 and #162600 completes the work required for collect system logs. ### Changes - `ObservabilityOnboardingType` now could be `logFiles | systemLogs`. This help us to identify (without changing the script) whether we need to retrieve the yaml configuration for customLogs or for systemLogs. - Added `generateSystemLogsYml` which generates a specific configuration for system logs. - `get_has_logs.ts` was modified so we are querying the proper index depending on the type of logs. #### Demo https://github.com/elastic/kibana/assets/1313018/47eca890-37b2-401e-9e41-67c978ab50ad
This PR is a preparation work for #154929.
Changes:
type
to onboarding savedObject.status
route since it was not being used.