[9.2](backport #48334) [metricbeat][system] add swap field to system.process.memory metricset#48485
[9.2](backport #48334) [metricbeat][system] add swap field to system.process.memory metricset#48485
Conversation
#48334) * [metricbeat][system] add swap field to system.process.memory metricset * update docs * update NOTICE.txt * remove field mapping * make changelog message more accurate * revert removing of field mapping * resolve PR comment * Update metricbeat/module/system/process/_meta/fields.yml Co-authored-by: Colleen McGinnis <colleen.j.mcginnis@gmail.com> * make update * update swap field ga version --------- Co-authored-by: Colleen McGinnis <colleen.j.mcginnis@gmail.com> (cherry picked from commit 90844ec) # Conflicts: # NOTICE.txt # go.mod # go.sum # metricbeat/module/system/fields.go
|
Cherry-pick of 90844ec has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
🤖 GitHub commentsJust comment with:
|
🔍 Preview links for changed docs |
|
This pull request has not been merged yet. Could you please review and merge it @stefans-elastic? 🙏 |
|
Closing this one as it was decided not to backport the original PR (at least until there is a specific request to support this in specific version) |
|
This backport is required to merge #48859 |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
✅ Vale Linting ResultsNo issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
Proposed commit message
See title
Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
On Linux

Some validation of the output

As is visible on the screenshot process with PID 43 and 90 really used no swap memory. And process with PID 640 used 1272 kB of swap memory (which is 1302528 bytes) and it matches what is shown in Kibana.
To make sure nothing breaks on other platforms I've run a test on macos (it is working fine, swap field is null on other than Linux platforms)

Logs
This is an automatic backport of pull request #48334 done by [Mergify](https://mergify.com).