[collectd] [PATCH] system plugin (interrupts/context switches/forks) for collectd 4.7
octo at verplant.org
Tue Jul 21 10:13:50 CEST 2009
On Fri, Jul 17, 2009 at 02:04:29PM +0100, Jari Takkala wrote:
> I found a patch by Nic Bellamy from January 2007 that adds a system
> plugin for collectd to gather total interrupts, context switches, and
> forks. The plugin wouldn't apply cleanly to version 4.7.1, so I've
> made some modifications and cleaned it up a bit.
thanks for bringing that patch to my attention again and updating it for
the current version. :)
> I think it's useful to have a plugin to gather totals for these
> values, rather than the separate values in the CPU plugin. Can we get
> this commited?
In general, yes. I can see that the number of context switches or the
fork rate may be interesting. I see some problems with the
- The name: “system” is way to unspecific. I propose to split the
plugin up in a “contextsw” and a “forkrate” plugin and leave IRQ
specific stuff to the irc plugin.
- Putting those three, totally unrelated values into one value list
(^= one RRD file) is not a good idea. With the above proposal, the
values would be split anyway. But even if everything stays in one
plugin, the values must be completely independent.
By the way, with very little configuration it's possible to collect this
information with the `table' plugin that Sebastian has written .
Maybe that's an alternative for you? Feel free to add an example
configuration for this use case to the wiki page to help others :)
Florian octo Forster
Hacker in training
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090721/7d3adaf4/attachment.pgp
More information about the collectd