
Change-Id: Ied1a96ea4d0ca8c3060c4394dcad82e30823c62a Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
32 lines
950 B
Puppet
32 lines
950 B
Puppet
# == Class: watcher::datasources
|
|
#
|
|
# Configure the datasources options
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*datasources*]
|
|
# (Optional) Datasources to use in order to query the needed metrics.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
# [*query_max_retries*]
|
|
# (Optional) How many times Watcher is trying to query again.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
# [*query_interval*]
|
|
# (Optional) How many seconds Watcher should wait to do query again.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
class watcher::datasources (
|
|
$datasources = $facts['os_service_default'],
|
|
$query_max_retries = $facts['os_service_default'],
|
|
$query_interval = $facts['os_service_default'],
|
|
) {
|
|
include watcher::deps
|
|
|
|
watcher_config {
|
|
'datasources/datasources': value => join(any2array($datasources), ',');
|
|
'datasources/query_max_retries': value => $query_max_retries;
|
|
'datasources/query_interval': value => $query_interval;
|
|
}
|
|
}
|