Puppet Class: collectd::plugin::dcpmm
- Defined in:
- manifests/plugin/dcpmm.pp
Overview
Class to manage dcpmm plugin for collectd.
The dcpmm plugin will collect IntelĀ® Optane(TM) DC Persistent Memory related performance statistics. Plugin requires root privileges to perform the statistics collection.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'manifests/plugin/dcpmm.pp', line 12
class collectd::plugin::dcpmm (
Enum['present', 'absent'] $ensure = 'present',
Float $interval = 10.0,
Boolean $collect_health = false,
Boolean $collect_perf_metrics = true,
Boolean $enable_dispatch_all = false,
) {
include collectd
if $collect_health and $collect_perf_metrics {
fail('collect_health and collect_perf_metrics cannot be true at the same time.')
}
if $enable_dispatch_all {
fail('enable_dispatch_all is unused at the moment and must always be false.')
}
collectd::plugin { 'dcpmm':
ensure => $ensure,
content => epp('collectd/plugin/dcpmm.conf.epp'),
}
}
|