<div dir="ltr"><div>Hi folks,</div><div><br></div><div>A project I'm doing ideally needs to run with a different interval for CPU vs general checks, so I've written a patch to allow the 'Interval' configuration option within the <Plugin "cpu"> configuration section.  This will then collect the cpu-n details at the custom interval.</div>

<div><br></div><div>I'm not sure registering the read function at the top of the init() function is ok, but couldn't see any obvious alternative other than adding a new plugin postconfig callback.</div><div><br></div>
<div>Could someone give it a check for me please and consider whether it could be merged?</div><div><br></div><div><br></div><div>I'm also considering how to do this for the aggregated cpu stats, in particular I'm thinking about whether there's any issue in allowing the cpu plugin to do aggregation itself.  It knows the stats and number of cpus, so I'm guessing it could easily sum the percentages and divide by ncpus to get the stat.  The aggregation plugin could still be used if people wanted more complex cpu aggregations, but it seems like it would be useful to provide the aggregation as standard, it would also allow the overall percentages to run on the same interval.</div>
<div><br></div><div>I'd be happy to code that up and could put it behind a configuration option if the maintainers preferred.</div><div><br></div><div>Any comments, please let me know.</div><div><br></div><div><br></div>
<div>Cheers,</div><div>Lee H</div></div>