Skip to content

Commit

Permalink
Merge pull request redhat-openstack#206 from muling-tt/master
Browse files Browse the repository at this point in the history
Add cpufreqplugin
  • Loading branch information
blkperl committed Dec 11, 2014
2 parents 3e13ce6 + 5802325 commit c16a8d6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ documentation for each plugin for configurable attributes.
* `apache` (see [collectd::plugin::apache](#class-collectdpluginapache) below)
* `bind` (see [collectd::plugin::bind](#class-collectdpluginbind) below)
* `cpu` (see [collectd::plugin::cpu](#class-collectdplugincpu) below)
* `cpufreq` (see [collectd::plugin::cpufreq](#class-collectdplugincpufreq) below)
* `csv` (see [collectd::plugin::csv](#class-collectdplugincsv) below)
* `curl` (see [collectd::plugin::curl](#class-collectdplugincurl) below)
* `curl_json` (see [collectd::plugin::curl_json](#class-collectdplugincurl_json) below)
Expand Down Expand Up @@ -146,6 +147,14 @@ class { 'collectd::plugin::bind':
```puppet
class { 'collectd::plugin::cpu':
}
```
####Class: `collectd::plugin::cpufreq`

```puppet
class { 'collectd::plugin::cpufreq':
}
```

####Class: `collectd::plugin::csv`
Expand Down
8 changes: 8 additions & 0 deletions manifests/plugin/cpufreq.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# https://collectd.org/wiki/index.php/Plugin:CPUFreq
class collectd::plugin::cpufreq (
$ensure = present,
) {
collectd::plugin {'cpufreq':
ensure => $ensure
}
}
2 changes: 1 addition & 1 deletion tests/plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
collectd::plugin { 'processes': }
collectd::plugin { 'swap': }
collectd::plugin { 'users': }

collects::plugin { 'cpufreq': }

0 comments on commit c16a8d6

Please sign in to comment.