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

[Infra UI] Fix process charts after refactoring #168159

Conversation

jennypavlova
Copy link
Member

@jennypavlova jennypavlova commented Oct 5, 2023

Closes #168156

Summary

This PR fixes process charts error:
image

I assume that after the merge of the refactoring PR, those files were recreated by another PR or most likely when main was merged to the refactoring PR with them as resolved conflicts. Deleting the files again fixed the issue.

Testing

I found the issue on serverless but it probably can be reproduced on on-prem as well
On Serverless:

  • Start a local es instance: yarn es serverless --kill --clean --license trial --ssl
  • Enable infra in the serverless.oblt.dev.yml file:
    • xpack.infra.enabled: true
  • Start a local kibana instance: yarn serverless-oblt --ssl and see if the side nav contains the Infrastructure item
  • Navigate to https://0.0.0.0:5601/ftw/app/hosts and open Asset details flyout or page
  • Click on the process tab and expand one of the processes
  • The charts (CPU and Memory) should be visible

@jennypavlova jennypavlova added Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Oct 5, 2023
@jennypavlova jennypavlova self-assigned this Oct 5, 2023
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@jennypavlova jennypavlova marked this pull request as ready for review October 5, 2023 21:11
@jennypavlova jennypavlova requested a review from a team as a code owner October 5, 2023 21:11
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
infra 1427 1426 -1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
infra 1.9MB 1.9MB -151.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jennypavlova

Copy link
Contributor

@mykolaharmash mykolaharmash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, everything works as expected 🙌

@jennypavlova jennypavlova merged commit 000b70c into elastic:main Oct 6, 2023
@jennypavlova jennypavlova deleted the 168156-infra-ui-process-list-charts-are-not-loading branch October 6, 2023 12:01
@jennypavlova jennypavlova restored the 168156-infra-ui-process-list-charts-are-not-loading branch October 6, 2023 12:01
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.11

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 6, 2023
Closes elastic#168156
## Summary

This PR fixes process charts error:

![image](https://github.com/elastic/kibana/assets/14139027/4d907c77-07a3-40da-96fd-2340bce2efc8)

I assume that after the merge of the refactoring PR, those files were
recreated by another PR or most likely when `main` was merged to [the
refactoring PR](elastic#166965) with them
as resolved conflicts. Deleting the files again fixed the issue.

## Testing
I found the issue on serverless but it probably can be reproduced on
on-prem as well
On Serverless:
- Start a local es instance: `yarn es serverless --kill --clean
--license trial --ssl`
- Enable infra in the `serverless.oblt.dev.yml` file:
   - `xpack.infra.enabled: true`
- Start a local kibana instance: `yarn serverless-oblt --ssl` and see if
the side nav contains the Infrastructure item
- Navigate to https://0.0.0.0:5601/ftw/app/hosts and open Asset details
flyout or page
- Click on the process tab and expand one of the processes
- The charts (CPU and Memory) should be visible

(cherry picked from commit 000b70c)
kibanamachine added a commit that referenced this pull request Oct 6, 2023
…8210)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[Infra UI] Fix process charts after refactoring
(#168159)](#168159)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"jennypavlova","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-10-06T12:01:19Z","message":"[Infra
UI] Fix process charts after refactoring (#168159)\n\nCloses #168156
\r\n## Summary\r\n\r\nThis PR fixes process charts error:
\r\n\r\n![image](https://github.com/elastic/kibana/assets/14139027/4d907c77-07a3-40da-96fd-2340bce2efc8)\r\n\r\nI
assume that after the merge of the refactoring PR, those files
were\r\nrecreated by another PR or most likely when `main` was merged to
[the\r\nrefactoring PR](#166965)
with them\r\nas resolved conflicts. Deleting the files again fixed the
issue.\r\n\r\n## Testing\r\nI found the issue on serverless but it
probably can be reproduced on\r\non-prem as well\r\nOn Serverless: \r\n-
Start a local es instance: `yarn es serverless --kill
--clean\r\n--license trial --ssl`\r\n- Enable infra in the
`serverless.oblt.dev.yml` file:\r\n - `xpack.infra.enabled: true`\r\n-
Start a local kibana instance: `yarn serverless-oblt --ssl` and see
if\r\nthe side nav contains the Infrastructure item\r\n- Navigate to
https://0.0.0.0:5601/ftw/app/hosts and open Asset details\r\nflyout or
page\r\n- Click on the process tab and expand one of the processes\r\n-
The charts (CPU and Memory) should be
visible","sha":"000b70c000ec1c8ce9d2ccda6faf60247116a263","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Infra
Monitoring
UI","release_note:skip","backport:prev-minor","v8.12.0"],"number":168159,"url":"https://github.com/elastic/kibana/pull/168159","mergeCommit":{"message":"[Infra
UI] Fix process charts after refactoring (#168159)\n\nCloses #168156
\r\n## Summary\r\n\r\nThis PR fixes process charts error:
\r\n\r\n![image](https://github.com/elastic/kibana/assets/14139027/4d907c77-07a3-40da-96fd-2340bce2efc8)\r\n\r\nI
assume that after the merge of the refactoring PR, those files
were\r\nrecreated by another PR or most likely when `main` was merged to
[the\r\nrefactoring PR](#166965)
with them\r\nas resolved conflicts. Deleting the files again fixed the
issue.\r\n\r\n## Testing\r\nI found the issue on serverless but it
probably can be reproduced on\r\non-prem as well\r\nOn Serverless: \r\n-
Start a local es instance: `yarn es serverless --kill
--clean\r\n--license trial --ssl`\r\n- Enable infra in the
`serverless.oblt.dev.yml` file:\r\n - `xpack.infra.enabled: true`\r\n-
Start a local kibana instance: `yarn serverless-oblt --ssl` and see
if\r\nthe side nav contains the Infrastructure item\r\n- Navigate to
https://0.0.0.0:5601/ftw/app/hosts and open Asset details\r\nflyout or
page\r\n- Click on the process tab and expand one of the processes\r\n-
The charts (CPU and Memory) should be
visible","sha":"000b70c000ec1c8ce9d2ccda6faf60247116a263"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/168159","number":168159,"mergeCommit":{"message":"[Infra
UI] Fix process charts after refactoring (#168159)\n\nCloses #168156
\r\n## Summary\r\n\r\nThis PR fixes process charts error:
\r\n\r\n![image](https://github.com/elastic/kibana/assets/14139027/4d907c77-07a3-40da-96fd-2340bce2efc8)\r\n\r\nI
assume that after the merge of the refactoring PR, those files
were\r\nrecreated by another PR or most likely when `main` was merged to
[the\r\nrefactoring PR](#166965)
with them\r\nas resolved conflicts. Deleting the files again fixed the
issue.\r\n\r\n## Testing\r\nI found the issue on serverless but it
probably can be reproduced on\r\non-prem as well\r\nOn Serverless: \r\n-
Start a local es instance: `yarn es serverless --kill
--clean\r\n--license trial --ssl`\r\n- Enable infra in the
`serverless.oblt.dev.yml` file:\r\n - `xpack.infra.enabled: true`\r\n-
Start a local kibana instance: `yarn serverless-oblt --ssl` and see
if\r\nthe side nav contains the Infrastructure item\r\n- Navigate to
https://0.0.0.0:5601/ftw/app/hosts and open Asset details\r\nflyout or
page\r\n- Click on the process tab and expand one of the processes\r\n-
The charts (CPU and Memory) should be
visible","sha":"000b70c000ec1c8ce9d2ccda6faf60247116a263"}}]}]
BACKPORT-->

Co-authored-by: jennypavlova <[email protected]>
dej611 pushed a commit to dej611/kibana that referenced this pull request Oct 17, 2023
Closes elastic#168156 
## Summary

This PR fixes process charts error: 

![image](https://github.com/elastic/kibana/assets/14139027/4d907c77-07a3-40da-96fd-2340bce2efc8)

I assume that after the merge of the refactoring PR, those files were
recreated by another PR or most likely when `main` was merged to [the
refactoring PR](elastic#166965) with them
as resolved conflicts. Deleting the files again fixed the issue.

## Testing
I found the issue on serverless but it probably can be reproduced on
on-prem as well
On Serverless: 
- Start a local es instance: `yarn es serverless --kill --clean
--license trial --ssl`
- Enable infra in the `serverless.oblt.dev.yml` file:
   - `xpack.infra.enabled: true`
- Start a local kibana instance: `yarn serverless-oblt --ssl` and see if
the side nav contains the Infrastructure item
- Navigate to https://0.0.0.0:5601/ftw/app/hosts and open Asset details
flyout or page
- Click on the process tab and expand one of the processes
- The charts (CPU and Memory) should be visible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v8.11.0 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Infra UI] Process List Charts are not loading
6 participants