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

Greatly reduce the metrics vmstat returns by default. #874

Merged
merged 2 commits into from
Mar 29, 2018

Conversation

brian-brazil
Copy link
Contributor

Vmstat has over 100 fields, most of which are highly
detailed debug information. Trim this down to only
essential fields by default, configurable by flag.

Signed-off-by: Brian Brazil [email protected]

@SuperQ This knocks 112 metrics or 14% off a node exporter on my laptop. I think bar a few keys ones, these are too detailed to keep given how many there are.

Copy link
Member

@grobie grobie left a comment

Choose a reason for hiding this comment

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

This covers our usage. We don't care about the other metrics indeed. 👍

@discordianfish
Copy link
Member

In general, makes sense and LGTM but I'd also like to keep oom_kill.

@brian-brazil
Copy link
Contributor Author

brian-brazil commented Mar 29, 2018

oom_kill

How exactly is that spelled? My kernel doesn't have it.

@discordianfish
Copy link
Member

Oh interesting. Here it is:

$ cat /proc/vmstat |grep -i oom
oom_kill 0

@SuperQ SuperQ force-pushed the vmstat-opt branch 2 times, most recently from 2511883 to bed25c4 Compare March 29, 2018 18:01
@SuperQ
Copy link
Member

SuperQ commented Mar 29, 2018

@discordianfish What kernel version is that? I don't see oom_kill on any of my nodes.

Vmstat has over 100 fields, most of which are highly
detailed debug information. Trim this down to only
essential fields by default, configurable by flag.

Signed-off-by: Brian Brazil <[email protected]>
@SuperQ SuperQ force-pushed the vmstat-opt branch 2 times, most recently from 4d2f9e3 to f37f918 Compare March 29, 2018 18:22
* Add oom_kill to fixture.
* Update e2e outputs.
* Put regexp in order.

Signed-off-by: Ben Kochie <[email protected]>
@grobie
Copy link
Member

grobie commented Mar 29, 2018

👍 for oom_kill, looks very useful. We have it on our new 4.15 kernels. It seems to have been introduced after at least 4.10.15 (which is our second newest kernel version).

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM

@brian-brazil brian-brazil merged commit cf3edad into master Mar 29, 2018
@brian-brazil brian-brazil deleted the vmstat-opt branch March 29, 2018 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants