Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.17] [Infra] Running processes missing from processes table (#209076)…
… (#209473) # Backport This will backport the following commits from `main` to `8.17`: - [[Infra] Running processes missing from processes table (#209076)](#209076) <!--- Backport version: 9.6.4 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"jennypavlova","email":"dzheni.pavlova@elastic.co"},"sourceCommit":{"committedDate":"2025-02-04T08:25:36Z","message":"[Infra] Running processes missing from processes table (#209076)\n\nCloses #184582\r\n\r\n## Summary\r\n\r\nThis PR fixes an issue with processes missing from the processes table\r\nand not being searchable.\r\n\r\n- Additional fixes: The chart size was not set correctly and they were\r\nnot visible so it is fixed now:\r\n\r\n| Before | After |\r\n| ---- | ------ |\r\n|\r\n\r\n|\r\n\r\n|\r\n\r\n⚠️ _UPDATE_ I also updated the archive used in the API test with the one\r\nwe have for the e2e name (and matched the name with the old one) so we\r\nhave consistent results and also the correct fields / mappings\r\n\r\n### Solution details\r\n\r\nAfter some digging into the fields I ended up **not** using the\r\nsuggested `process.name` because it gave us too generic information for\r\nthe table (we should still use the command there) also tried the process\r\nid but then the search by command won't work properly. So I found a\r\nfield that is not ignored and contains the same information called\r\n`process.command_line`and used it:\r\n<img width=\"538\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/ce4d35a6-e912-4656-bee1-8137d5635432\"\r\n/>\r\n\r\n## Testing\r\n\r\n- Follow the steps in the issue inside `How to reproduce` to create the\r\ntwo processes\r\n- Note: in order to see the process summary, you need to enable it in\r\nthe config (⚠️ for the oblt hosts I checked it is not enabled and the\r\nsummary section showed N/A ) :\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/41bdcc8d-6b87-4351-b866-2e706dd11dfd\r\n\r\n - The metrics charts should be visible\r\n - The search should work as expected:\r\n - And the missing.... process should be visible","sha":"1f52febb1cd43724e81514af398049f64c516199","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[Infra] Running processes missing from processes table","number":209076,"url":"https://github.com/elastic/kibana/pull/209076","mergeCommit":{"message":"[Infra] Running processes missing from processes table (#209076)\n\nCloses #184582\r\n\r\n## Summary\r\n\r\nThis PR fixes an issue with processes missing from the processes table\r\nand not being searchable.\r\n\r\n- Additional fixes: The chart size was not set correctly and they were\r\nnot visible so it is fixed now:\r\n\r\n| Before | After |\r\n| ---- | ------ |\r\n|\r\n\r\n|\r\n\r\n|\r\n\r\n⚠️ _UPDATE_ I also updated the archive used in the API test with the one\r\nwe have for the e2e name (and matched the name with the old one) so we\r\nhave consistent results and also the correct fields / mappings\r\n\r\n### Solution details\r\n\r\nAfter some digging into the fields I ended up **not** using the\r\nsuggested `process.name` because it gave us too generic information for\r\nthe table (we should still use the command there) also tried the process\r\nid but then the search by command won't work properly. So I found a\r\nfield that is not ignored and contains the same information called\r\n`process.command_line`and used it:\r\n<img width=\"538\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/ce4d35a6-e912-4656-bee1-8137d5635432\"\r\n/>\r\n\r\n## Testing\r\n\r\n- Follow the steps in the issue inside `How to reproduce` to create the\r\ntwo processes\r\n- Note: in order to see the process summary, you need to enable it in\r\nthe config (⚠️ for the oblt hosts I checked it is not enabled and the\r\nsummary section showed N/A ) :\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/41bdcc8d-6b87-4351-b866-2e706dd11dfd\r\n\r\n - The metrics charts should be visible\r\n - The search should work as expected:\r\n - And the missing.... process should be visible","sha":"1f52febb1cd43724e81514af398049f64c516199"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209076","number":209076,"mergeCommit":{"message":"[Infra] Running processes missing from processes table (#209076)\n\nCloses #184582\r\n\r\n## Summary\r\n\r\nThis PR fixes an issue with processes missing from the processes table\r\nand not being searchable.\r\n\r\n- Additional fixes: The chart size was not set correctly and they were\r\nnot visible so it is fixed now:\r\n\r\n| Before | After |\r\n| ---- | ------ |\r\n|\r\n\r\n|\r\n\r\n|\r\n\r\n⚠️ _UPDATE_ I also updated the archive used in the API test with the one\r\nwe have for the e2e name (and matched the name with the old one) so we\r\nhave consistent results and also the correct fields / mappings\r\n\r\n### Solution details\r\n\r\nAfter some digging into the fields I ended up **not** using the\r\nsuggested `process.name` because it gave us too generic information for\r\nthe table (we should still use the command there) also tried the process\r\nid but then the search by command won't work properly. So I found a\r\nfield that is not ignored and contains the same information called\r\n`process.command_line`and used it:\r\n<img width=\"538\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/ce4d35a6-e912-4656-bee1-8137d5635432\"\r\n/>\r\n\r\n## Testing\r\n\r\n- Follow the steps in the issue inside `How to reproduce` to create the\r\ntwo processes\r\n- Note: in order to see the process summary, you need to enable it in\r\nthe config (⚠️ for the oblt hosts I checked it is not enabled and the\r\nsummary section showed N/A ) :\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/41bdcc8d-6b87-4351-b866-2e706dd11dfd\r\n\r\n - The metrics charts should be visible\r\n - The search should work as expected:\r\n - And the missing.... process should be visible","sha":"1f52febb1cd43724e81514af398049f64c516199"}},{"url":"https://github.com/elastic/kibana/pull/209467","number":209467,"branch":"8.18","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/209468","number":209468,"branch":"8.x","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/209469","number":209469,"branch":"9.0","state":"OPEN"}]}] BACKPORT-->
- Loading branch information