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] Running processes missing from processes table #209076

Conversation

jennypavlova
Copy link
Member

@jennypavlova jennypavlova commented Jan 31, 2025

Closes #184582

Summary

This PR fixes an issue with processes missing from the processes table and not being searchable.

  • Additional fixes: The chart size was not set correctly and they were not visible so it is fixed now:
Before After
image image

⚠️ UPDATE I also updated the archive used in the API test with the one we have for the e2e name (and matched the name with the old one) so we have consistent results and also the correct fields / mappings

Solution details

After some digging into the fields I ended up not using the suggested process.name because it gave us too generic information for the table (we should still use the command there) also tried the process id but then the search by command won't work properly. So I found a field that is not ignored and contains the same information called process.command_lineand used it:
image

Testing

  • Follow the steps in the issue inside How to reproduce to create the two processes
    • Note: in order to see the process summary, you need to enable it in the config ( ⚠️ for the oblt hosts I checked it is not enabled and the summary section showed N/A ) :
      image
processes.mov
  • The metrics charts should be visible
  • The search should work as expected:
    • And the missing.... process should be visible

@jennypavlova jennypavlova added release_note:fix backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) backport:prev-major Backport to (8.x, 8.18, 8.17, 8.16) the previous major branch and other branches in development Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Jan 31, 2025
@jennypavlova jennypavlova self-assigned this Jan 31, 2025
@jennypavlova jennypavlova marked this pull request as ready for review January 31, 2025 11:44
@jennypavlova jennypavlova requested a review from a team as a code owner January 31, 2025 11:44
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

Copy link
Contributor

@crespocarlos crespocarlos left a comment

Choose a reason for hiding this comment

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

LGTM! thanks for this change.

height: 140px;
}
`}
<Chart
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #66 / maps app geo file upload shapefile upload should add as document layer

Metrics [docs]

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.2MB 1.2MB -44.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
infra 50.5KB 50.6KB +59.0B

History

cc @jennypavlova

@jennypavlova jennypavlova merged commit 1f52feb into elastic:main Feb 4, 2025
10 checks passed
@jennypavlova jennypavlova deleted the 184582-infra-running-processes-missing-from-processes-table branch February 4, 2025 08:25
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13131231484

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 4, 2025
Closes elastic#184582

## Summary

This PR fixes an issue with processes missing from the processes table
and not being searchable.

- Additional fixes: The chart size was not set correctly and they were
not visible so it is fixed now:

| Before | After |
| ---- | ------ |
|
![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)
|
![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)
|

⚠️ _UPDATE_ I also updated the archive used in the API test with the one
we have for the e2e name (and matched the name with the old one) so we
have consistent results and also the correct fields / mappings

### Solution details

After some digging into the fields I ended up **not** using the
suggested `process.name` because it gave us too generic information for
the table (we should still use the command there) also tried the process
id but then the search by command won't work properly. So I found a
field that is not ignored and contains the same information called
`process.command_line`and used it:
<img width="538" alt="image"
src="https://github.com/user-attachments/assets/ce4d35a6-e912-4656-bee1-8137d5635432"
/>

## Testing

- Follow the steps in the issue inside `How to reproduce` to create the
two processes
- Note: in order to see the process summary, you need to enable it in
the config ( ⚠️ for the oblt hosts I checked it is not enabled and the
summary section showed N/A ) :

![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)

https://github.com/user-attachments/assets/41bdcc8d-6b87-4351-b866-2e706dd11dfd

 - The metrics charts should be visible
 - The search should work as expected:
   - And the missing.... process should be visible

(cherry picked from commit 1f52feb)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 4, 2025
Closes elastic#184582

## Summary

This PR fixes an issue with processes missing from the processes table
and not being searchable.

- Additional fixes: The chart size was not set correctly and they were
not visible so it is fixed now:

| Before | After |
| ---- | ------ |
|
![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)
|
![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)
|

⚠️ _UPDATE_ I also updated the archive used in the API test with the one
we have for the e2e name (and matched the name with the old one) so we
have consistent results and also the correct fields / mappings

### Solution details

After some digging into the fields I ended up **not** using the
suggested `process.name` because it gave us too generic information for
the table (we should still use the command there) also tried the process
id but then the search by command won't work properly. So I found a
field that is not ignored and contains the same information called
`process.command_line`and used it:
<img width="538" alt="image"
src="https://github.com/user-attachments/assets/ce4d35a6-e912-4656-bee1-8137d5635432"
/>

## Testing

- Follow the steps in the issue inside `How to reproduce` to create the
two processes
- Note: in order to see the process summary, you need to enable it in
the config ( ⚠️ for the oblt hosts I checked it is not enabled and the
summary section showed N/A ) :

![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)

https://github.com/user-attachments/assets/41bdcc8d-6b87-4351-b866-2e706dd11dfd

 - The metrics charts should be visible
 - The search should work as expected:
   - And the missing.... process should be visible

(cherry picked from commit 1f52feb)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 4, 2025
Closes elastic#184582

## Summary

This PR fixes an issue with processes missing from the processes table
and not being searchable.

- Additional fixes: The chart size was not set correctly and they were
not visible so it is fixed now:

| Before | After |
| ---- | ------ |
|
![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)
|
![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)
|

⚠️ _UPDATE_ I also updated the archive used in the API test with the one
we have for the e2e name (and matched the name with the old one) so we
have consistent results and also the correct fields / mappings

### Solution details

After some digging into the fields I ended up **not** using the
suggested `process.name` because it gave us too generic information for
the table (we should still use the command there) also tried the process
id but then the search by command won't work properly. So I found a
field that is not ignored and contains the same information called
`process.command_line`and used it:
<img width="538" alt="image"
src="https://github.com/user-attachments/assets/ce4d35a6-e912-4656-bee1-8137d5635432"
/>

## Testing

- Follow the steps in the issue inside `How to reproduce` to create the
two processes
- Note: in order to see the process summary, you need to enable it in
the config ( ⚠️ for the oblt hosts I checked it is not enabled and the
summary section showed N/A ) :

![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)

https://github.com/user-attachments/assets/41bdcc8d-6b87-4351-b866-2e706dd11dfd

 - The metrics charts should be visible
 - The search should work as expected:
   - And the missing.... process should be visible

(cherry picked from commit 1f52feb)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.16 Backport failed because of merge conflicts
8.17 Backport failed because of merge conflicts
8.18
8.x
9.0

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 209076

Questions ?

Please refer to the Backport tool documentation

jennypavlova added a commit to jennypavlova/kibana that referenced this pull request Feb 4, 2025
Closes elastic#184582

## Summary

This PR fixes an issue with processes missing from the processes table
and not being searchable.

- Additional fixes: The chart size was not set correctly and they were
not visible so it is fixed now:

| Before | After |
| ---- | ------ |
|
![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)
|
![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)
|

⚠️ _UPDATE_ I also updated the archive used in the API test with the one
we have for the e2e name (and matched the name with the old one) so we
have consistent results and also the correct fields / mappings

### Solution details

After some digging into the fields I ended up **not** using the
suggested `process.name` because it gave us too generic information for
the table (we should still use the command there) also tried the process
id but then the search by command won't work properly. So I found a
field that is not ignored and contains the same information called
`process.command_line`and used it:
<img width="538" alt="image"
src="https://github.com/user-attachments/assets/ce4d35a6-e912-4656-bee1-8137d5635432"
/>

## Testing

- Follow the steps in the issue inside `How to reproduce` to create the
two processes
- Note: in order to see the process summary, you need to enable it in
the config ( ⚠️ for the oblt hosts I checked it is not enabled and the
summary section showed N/A ) :

![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)

https://github.com/user-attachments/assets/41bdcc8d-6b87-4351-b866-2e706dd11dfd

 - The metrics charts should be visible
 - The search should work as expected:
   - And the missing.... process should be visible

(cherry picked from commit 1f52feb)

# Conflicts:
#	x-pack/plugins/observability_solution/infra/server/lib/host_details/process_list.ts
#	x-pack/plugins/observability_solution/infra/server/lib/host_details/process_list_chart.ts
jennypavlova added a commit to jennypavlova/kibana that referenced this pull request Feb 4, 2025
Closes elastic#184582

## Summary

This PR fixes an issue with processes missing from the processes table
and not being searchable.

- Additional fixes: The chart size was not set correctly and they were
not visible so it is fixed now:

| Before | After |
| ---- | ------ |
|
![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)
|
![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)
|

⚠️ _UPDATE_ I also updated the archive used in the API test with the one
we have for the e2e name (and matched the name with the old one) so we
have consistent results and also the correct fields / mappings

### Solution details

After some digging into the fields I ended up **not** using the
suggested `process.name` because it gave us too generic information for
the table (we should still use the command there) also tried the process
id but then the search by command won't work properly. So I found a
field that is not ignored and contains the same information called
`process.command_line`and used it:
<img width="538" alt="image"
src="https://github.com/user-attachments/assets/ce4d35a6-e912-4656-bee1-8137d5635432"
/>

## Testing

- Follow the steps in the issue inside `How to reproduce` to create the
two processes
- Note: in order to see the process summary, you need to enable it in
the config ( ⚠️ for the oblt hosts I checked it is not enabled and the
summary section showed N/A ) :

![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)

https://github.com/user-attachments/assets/41bdcc8d-6b87-4351-b866-2e706dd11dfd

 - The metrics charts should be visible
 - The search should work as expected:
   - And the missing.... process should be visible

(cherry picked from commit 1f52feb)

# Conflicts:
#	x-pack/plugins/observability_solution/infra/server/lib/host_details/process_list.ts
#	x-pack/plugins/observability_solution/infra/server/lib/host_details/process_list_chart.ts
#	x-pack/test/api_integration/apis/metrics_ui/metrics_process_list.ts
#	x-pack/test/api_integration/apis/metrics_ui/metrics_process_list_chart.ts
@jennypavlova
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.17
8.16

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

Questions ?

Please refer to the Backport tool documentation

jennypavlova added a commit to jennypavlova/kibana that referenced this pull request Feb 4, 2025
Closes elastic#184582

## Summary

This PR fixes an issue with processes missing from the processes table
and not being searchable.

- Additional fixes: The chart size was not set correctly and they were
not visible so it is fixed now:

| Before | After |
| ---- | ------ |
|
![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)
|
![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)
|

⚠️ _UPDATE_ I also updated the archive used in the API test with the one
we have for the e2e name (and matched the name with the old one) so we
have consistent results and also the correct fields / mappings

### Solution details

After some digging into the fields I ended up **not** using the
suggested `process.name` because it gave us too generic information for
the table (we should still use the command there) also tried the process
id but then the search by command won't work properly. So I found a
field that is not ignored and contains the same information called
`process.command_line`and used it:
<img width="538" alt="image"
src="https://github.com/user-attachments/assets/ce4d35a6-e912-4656-bee1-8137d5635432"
/>

## Testing

- Follow the steps in the issue inside `How to reproduce` to create the
two processes
- Note: in order to see the process summary, you need to enable it in
the config ( ⚠️ for the oblt hosts I checked it is not enabled and the
summary section showed N/A ) :

![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)

https://github.com/user-attachments/assets/41bdcc8d-6b87-4351-b866-2e706dd11dfd

 - The metrics charts should be visible
 - The search should work as expected:
   - And the missing.... process should be visible

(cherry picked from commit 1f52feb)

# Conflicts:
#	x-pack/plugins/observability_solution/infra/server/lib/host_details/process_list.ts
#	x-pack/plugins/observability_solution/infra/server/lib/host_details/process_list_chart.ts
kibanamachine added a commit that referenced this pull request Feb 4, 2025
#209468)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Infra] Running processes missing from processes table
(#209076)](#209076)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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"}}]}]
BACKPORT-->

Co-authored-by: jennypavlova <dzheni.pavlova@elastic.co>
jennypavlova added a commit that referenced this pull request Feb 4, 2025
… (#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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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-->
jennypavlova added a commit that referenced this pull request Feb 4, 2025
… (#209476)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Feb 4, 2025
#209469)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Infra] Running processes missing from processes table
(#209076)](#209076)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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"}}]}]
BACKPORT-->

Co-authored-by: jennypavlova <dzheni.pavlova@elastic.co>
kibanamachine added a commit that referenced this pull request Feb 4, 2025
… (#209467)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Infra] Running processes missing from processes table
(#209076)](#209076)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)\r\n|\r\n![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)\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![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)\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"}}]}]
BACKPORT-->

Co-authored-by: jennypavlova <dzheni.pavlova@elastic.co>
drewdaemon pushed a commit to drewdaemon/kibana that referenced this pull request Feb 6, 2025
Closes elastic#184582

## Summary

This PR fixes an issue with processes missing from the processes table
and not being searchable.

- Additional fixes: The chart size was not set correctly and they were
not visible so it is fixed now:

| Before | After |
| ---- | ------ |
|
![image](https://github.com/user-attachments/assets/3bd0788d-a89e-4cac-84af-40f6cf101613)
|
![image](https://github.com/user-attachments/assets/21ebbdc0-fcfa-4de5-a7f4-cbe855eceb7a)
|

⚠️ _UPDATE_ I also updated the archive used in the API test with the one
we have for the e2e name (and matched the name with the old one) so we
have consistent results and also the correct fields / mappings

### Solution details

After some digging into the fields I ended up **not** using the
suggested `process.name` because it gave us too generic information for
the table (we should still use the command there) also tried the process
id but then the search by command won't work properly. So I found a
field that is not ignored and contains the same information called
`process.command_line`and used it:
<img width="538" alt="image"
src="https://github.com/user-attachments/assets/ce4d35a6-e912-4656-bee1-8137d5635432"
/>

## Testing

- Follow the steps in the issue inside `How to reproduce` to create the
two processes
- Note: in order to see the process summary, you need to enable it in
the config ( ⚠️ for the oblt hosts I checked it is not enabled and the
summary section showed N/A ) :

![image](https://github.com/user-attachments/assets/ffd5fa1c-d909-4ec1-ab35-99186fc8b5e3)


https://github.com/user-attachments/assets/41bdcc8d-6b87-4351-b866-2e706dd11dfd

 - The metrics charts should be visible
 - The search should work as expected:
   - And the missing.... process should be visible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.18, 8.17, 8.16) the previous major branch and other branches in development backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) release_note:fix Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.16.4 v8.17.2 v8.18.0 v8.19.0 v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Infra] Running processes missing from Processes table
4 participants