Skip to content

[9.3](backport #48334) [metricbeat][system] add swap field to system.process.memory metricset#48486

Merged
rdner merged 3 commits into9.3from
mergify/bp/9.3/pr-48334
Feb 24, 2026
Merged

[9.3](backport #48334) [metricbeat][system] add swap field to system.process.memory metricset#48486
rdner merged 3 commits into9.3from
mergify/bp/9.3/pr-48334

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Jan 20, 2026

Proposed commit message

See title

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • I have added an entry in ./changelog/fragments using the changelog tool.

Disruptive User Impact

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

On Linux
Screenshot 2026-01-07 at 15 48 30

Some validation of the output
Screenshot 2026-01-07 at 16 10 27

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)
Screenshot 2026-01-08 at 11 26 04

Logs


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

@mergify mergify bot added backport conflicts There is a conflict in the backported pull request labels Jan 20, 2026
@mergify mergify bot requested review from a team as code owners January 20, 2026 17:12
@mergify mergify bot removed the request for review from a team January 20, 2026 17:12
@mergify mergify bot added the backport label Jan 20, 2026
@mergify mergify bot requested review from khushijain21 and leehinman January 20, 2026 17:12
@mergify mergify bot added the conflicts There is a conflict in the backported pull request label Jan 20, 2026
@mergify
Copy link
Copy Markdown
Contributor Author

mergify bot commented Jan 20, 2026

Cherry-pick of 90844ec has failed:

On branch mergify/bp/9.3/pr-48334
Your branch is up to date with 'origin/9.3'.

You are currently cherry-picking commit 90844ec02.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   NOTICE.txt
	new file:   changelog/fragments/1767864511-add-swap-field-to-system.process.memory-metric-set-in-metricbeats.yaml
	modified:   docs/reference/metricbeat/exported-fields-system.md
	modified:   docs/reference/metricbeat/metricbeat-metricset-system-process.md
	modified:   metricbeat/module/system/fields.go
	modified:   metricbeat/module/system/process/_meta/data.json
	modified:   metricbeat/module/system/process/_meta/fields.yml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   go.mod
	both modified:   go.sum

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

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jan 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@github-actions github-actions bot added enhancement Metricbeat Metricbeat Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team labels Jan 20, 2026
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jan 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 20, 2026

@mergify
Copy link
Copy Markdown
Contributor Author

mergify bot commented Jan 26, 2026

This pull request has not been merged yet. Could you please review and merge it @stefans-elastic? 🙏

@stefans-elastic
Copy link
Copy Markdown
Contributor

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)

@mergify mergify bot deleted the mergify/bp/9.3/pr-48334 branch January 28, 2026 08:39
@rdner rdner restored the mergify/bp/9.3/pr-48334 branch February 24, 2026 10:20
@rdner
Copy link
Copy Markdown
Member

rdner commented Feb 24, 2026

This needs to be backported to merge #48860

Reopening...

@rdner rdner reopened this Feb 24, 2026
@rdner rdner removed request for a team and leehinman February 24, 2026 10:20
@rdner rdner requested review from rdner and removed request for khushijain21 February 24, 2026 10:20
@rdner rdner assigned rdner and unassigned stefans-elastic Feb 24, 2026
@mergify
Copy link
Copy Markdown
Contributor Author

mergify bot commented Feb 24, 2026

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b mergify/bp/9.3/pr-48334 upstream/mergify/bp/9.3/pr-48334
git merge upstream/9.3
git push upstream mergify/bp/9.3/pr-48334

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 24, 2026

✅ Vale Linting Results

No 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.

stefans-elastic and others added 2 commits February 24, 2026 11:23
#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)
@rdner rdner force-pushed the mergify/bp/9.3/pr-48334 branch from 29de616 to 7a6765b Compare February 24, 2026 10:25
@rdner rdner enabled auto-merge (squash) February 24, 2026 10:27
@rdner rdner merged commit 776c046 into 9.3 Feb 24, 2026
45 checks passed
@rdner rdner deleted the mergify/bp/9.3/pr-48334 branch February 24, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport conflicts There is a conflict in the backported pull request enhancement Metricbeat Metricbeat Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants