Skip to content

Commit c16a8d6

Browse files
committed
Merge pull request redhat-openstack#206 from muling-tt/master
Add cpufreqplugin
2 parents 3e13ce6 + 5802325 commit c16a8d6

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ documentation for each plugin for configurable attributes.
5959
* `apache` (see [collectd::plugin::apache](#class-collectdpluginapache) below)
6060
* `bind` (see [collectd::plugin::bind](#class-collectdpluginbind) below)
6161
* `cpu` (see [collectd::plugin::cpu](#class-collectdplugincpu) below)
62+
* `cpufreq` (see [collectd::plugin::cpufreq](#class-collectdplugincpufreq) below)
6263
* `csv` (see [collectd::plugin::csv](#class-collectdplugincsv) below)
6364
* `curl` (see [collectd::plugin::curl](#class-collectdplugincurl) below)
6465
* `curl_json` (see [collectd::plugin::curl_json](#class-collectdplugincurl_json) below)
@@ -146,6 +147,14 @@ class { 'collectd::plugin::bind':
146147
```puppet
147148
class { 'collectd::plugin::cpu':
148149
}
150+
151+
152+
```
153+
####Class: `collectd::plugin::cpufreq`
154+
155+
```puppet
156+
class { 'collectd::plugin::cpufreq':
157+
}
149158
```
150159

151160
####Class: `collectd::plugin::csv`

manifests/plugin/cpufreq.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# https://collectd.org/wiki/index.php/Plugin:CPUFreq
2+
class collectd::plugin::cpufreq (
3+
$ensure = present,
4+
) {
5+
collectd::plugin {'cpufreq':
6+
ensure => $ensure
7+
}
8+
}

tests/plugin.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
collectd::plugin { 'processes': }
1717
collectd::plugin { 'swap': }
1818
collectd::plugin { 'users': }
19-
19+
collects::plugin { 'cpufreq': }

0 commit comments

Comments
 (0)