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

[Metricbeat] Add new metrics for swapin/out #13175

Closed
radoondas opened this issue Aug 5, 2019 · 6 comments
Closed

[Metricbeat] Add new metrics for swapin/out #13175

radoondas opened this issue Aug 5, 2019 · 6 comments
Assignees
Labels
enhancement Metricbeat Metricbeat Team:Integrations Label for the Integrations team

Comments

@radoondas
Copy link
Member

Describe the enhancement:
Hi, I would like to be able to collect metrics from swapin/out as showed below.

root@server42:/etc/systemd/system# cat /proc/vmstat|grep swp
pswpin 399224
pswpout 1291234

Thanks

@fearful-symmetry
Copy link
Contributor

Looking into this. On linux, the current swap stat implementation used by elastic/gosigar uses /proc/meminfo and not /proc/vmstat. However, it shouldn't be hard to grab the vmstat metrics and add them to the (limited) swap data we're getting from meminfo.

@fearful-symmetry
Copy link
Contributor

So, oddly enough, I don't see anything in gosigar that reads from the vmstat procfs file under linux. Gonna have to start there.

@fearful-symmetry fearful-symmetry self-assigned this Aug 6, 2019
@fearful-symmetry fearful-symmetry added Team:Integrations Label for the Integrations team enhancement Metricbeat Metricbeat labels Aug 6, 2019
@fearful-symmetry
Copy link
Contributor

Okay, finally starting work on this. It looks like we'll be using the elastic/go-sysinfo library.

@kkh-security-distractions

Greta to hear, that this is underway There could be other useful stuff i /proc/vmstat , but swap info is key for us right now. Let us if you want some beta testers , happy to help out.

@fearful-symmetry
Copy link
Contributor

This is merged, and should be in 7.5

@kkh-security-distractions

awesome ,thnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Metricbeat Metricbeat Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

4 participants