Browse Source

Add config option for collectd libpodstats

Change-Id: I1f47772d01e10b3f399bd4ba3da90b6016e407b0
Depends-On: https://review.opendev.org/757344
Signed-off-by: pleimer <pfbleimer@gmail.com>
(cherry picked from commit 824f1b8d3b)
changes/45/757345/1
pleimer 1 year ago
committed by Paul Leimer
parent
commit
15faa808a2
  1. 1
      ci/environments/scenario001-multinode-containers.yaml
  2. 1
      ci/environments/scenario001-standalone.yaml
  3. 11
      deployment/metrics/collectd-container-puppet.yaml

1
ci/environments/scenario001-multinode-containers.yaml

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

1
ci/environments/scenario001-standalone.yaml

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

11
deployment/metrics/collectd-container-puppet.yaml

@ -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:

Loading…
Cancel
Save