Install libvirt collectd plugin only when required
This change makes sure that we install the libvirt collectd plugin only when the metrics collection is enabled. Change-Id: I1632391d379a8b7a47ec43e83c9f2ab206522fa9 Closes-Bug: #1536183
This commit is contained in:
parent
f88f302a30
commit
8f95112402
@ -38,6 +38,12 @@ if $lma_collector['influxdb_mode'] != 'disabled' {
|
|||||||
class { 'lma_collector::logs::counter':
|
class { 'lma_collector::logs::counter':
|
||||||
hostname => $::hostname,
|
hostname => $::hostname,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class { 'lma_collector::collectd::base':
|
||||||
|
processes => ['hekad', 'collectd'],
|
||||||
|
}
|
||||||
|
|
||||||
|
class { 'lma_collector::collectd::libvirt': }
|
||||||
}
|
}
|
||||||
|
|
||||||
if $ceilometer['enabled'] {
|
if $ceilometer['enabled'] {
|
||||||
@ -68,9 +74,3 @@ service { $compute_service:
|
|||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
hasrestart => true,
|
hasrestart => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'lma_collector::collectd::base':
|
|
||||||
processes => ['hekad', 'collectd'],
|
|
||||||
}
|
|
||||||
|
|
||||||
class { 'lma_collector::collectd::libvirt': }
|
|
||||||
|
Loading…
Reference in New Issue
Block a user