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

[Feature Request] Procstat cpu in percent #484

Closed
melck opened this issue Jan 6, 2016 · 5 comments · Fixed by #554
Closed

[Feature Request] Procstat cpu in percent #484

melck opened this issue Jan 6, 2016 · 5 comments · Fixed by #554

Comments

@melck
Copy link

melck commented Jan 6, 2016

I want to collect all processes with their state and cpu usage in percent. Actually procstat_cpu give time spent.

Could you add procstat_cpu_usage* metrics to easier exploit data ?

Is there a way to list all processes without define pattern ?

@sparrc
Copy link
Contributor

sparrc commented Jan 8, 2016

shouldn't be too hard, it will probably work similar to the current cpu plugin implementation

@melck
Copy link
Author

melck commented Jan 9, 2016

Yes it's like cpu plugin and to list all processes without pattern ?

@sparrc
Copy link
Contributor

sparrc commented Jan 20, 2016

@melck this plugin really isn't optimized for getting stats for all processes, what is your use-case? are you looking for the "top" consuming processes?

sparrc added a commit that referenced this issue Jan 20, 2016
@melck
Copy link
Author

melck commented Jan 20, 2016

@sparrc Yes, I don't want all processes, I just want to have "top X" consumming processes.

I want to watch some processes to compare when we have extra consumption cpu or memory

@sparrc
Copy link
Contributor

sparrc commented Jan 20, 2016

There's been a request for that before, and I think using ps or top would be better. The procstat plugin takes quite a bit of time to query each process it monitors, so I don't think it's good for monitoring all processes. (try setting it up with pattern = "i" and you'll see what I mean)

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 a pull request may close this issue.

2 participants