Merge "Add config option for collectd libpodstats" into stable/ussuri

This commit is contained in:
Zuul 2020-10-20 00:26:31 +00:00 committed by Gerrit Code Review
commit 1ddbd2791b
3 changed files with 13 additions and 0 deletions

View File

@ -176,6 +176,7 @@ parameter_defaults:
CollectdExtraPlugins:
- rrdtool
CollectdEnableSensubility: true
CollectdEnableLibpodstats: true
LoggingServers:
- host: 127.0.0.1
port: 24224

View File

@ -163,6 +163,7 @@ parameter_defaults:
CollectdExtraPlugins:
- rrdtool
CollectdEnableSensubility: true
CollectdEnableLibpodstats: true
CollectdAmqpInstances:
notify:
notify: true

View File

@ -370,6 +370,10 @@ parameters:
type: boolean
description: Set to true to enable mcelog
default: false
CollectdEnableLibpodstats:
type: boolean
description: Set to true if collectd should run the libpodstats plugin
default: false
conditions:
amqp_connection:
@ -396,6 +400,8 @@ conditions:
sensubility_needs_sudo:
not:
equals: [{get_param: CollectdSensubilityExecSudoRule}, '']
enable_libpodstats:
equals: [{get_param: CollectdEnableLibpodstats}, true]
resources:
ContainersCommon:
@ -647,6 +653,11 @@ outputs:
occurrences: {get_param: CollectdContainerHealthCheckOccurrences}
refresh: {get_param: CollectdContainerHealthCheckRefresh}
- {}
- if:
- enable_libpodstats
- tripleo::profile::base::metrics::collectd::enable_libpodstats:
get_param: CollectdEnableLibpodstats
- {}
service_config_settings: {}
# BEGIN DOCKER SETTINGS
puppet_config: