Puppet Class: statsd::config

Defined in:
manifests/config.pp

Overview

Class: statsd::config

Parameters:

  • configfile (Any) (defaults to: $statsd::configfile)
  • port (Any) (defaults to: $statsd::port)
  • address (Any) (defaults to: $statsd::address)
  • backends (Any) (defaults to: $statsd::backends)
  • debug (Any) (defaults to: $statsd::debug)
  • mgmt_address (Any) (defaults to: $statsd::mgmt_address)
  • mgmt_port (Any) (defaults to: $statsd::mgmt_port)
  • statsd_title (Any) (defaults to: $statsd::statsd_title)
  • healthStatus (Any) (defaults to: $statsd::healthStatus)
  • dumpMessages (Any) (defaults to: $statsd::dumpMessages)
  • flushInterval (Any) (defaults to: $statsd::flushInterval)
  • percentThreshold (Any) (defaults to: $statsd::percentThreshold)
  • flush_counts (Any) (defaults to: $statsd::flush_counts)
  • prefix_stats (Any) (defaults to: $statsd::prefix_stats)
  • keyNameSanitize (Any) (defaults to: $statsd::keyNameSanitize)
  • deleteIdleStats (Any) (defaults to: $statsd::deleteIdleStats)
  • deleteGauges (Any) (defaults to: $statsd::deleteGauges)
  • deleteTimers (Any) (defaults to: $statsd::deleteTimers)
  • deleteSets (Any) (defaults to: $statsd::deleteSets)
  • deleteCounters (Any) (defaults to: $statsd::deleteCounters)
  • graphiteHost (Any) (defaults to: $statsd::graphiteHost)
  • graphitePort (Any) (defaults to: $statsd::graphitePort)
  • graphite_legacyNamespace (Any) (defaults to: $statsd::graphite_legacyNamespace)
  • graphite_globalPrefix (Any) (defaults to: $statsd::graphite_globalPrefix)
  • graphite_prefixCounter (Any) (defaults to: $statsd::graphite_prefixCounter)
  • graphite_prefixTimer (Any) (defaults to: $statsd::graphite_prefixTimer)
  • graphite_prefixGauge (Any) (defaults to: $statsd::graphite_prefixGauge)
  • graphite_prefixSet (Any) (defaults to: $statsd::graphite_prefixSet)
  • graphite_globalSuffix (Any) (defaults to: $statsd::graphite_globalSuffix)
  • influxdb_package_name (Any) (defaults to: $statsd::influxdb_package_name)
  • influxdb_host (Any) (defaults to: $statsd::influxdb_host)
  • influxdb_port (Any) (defaults to: $statsd::influxdb_port)
  • influxdb_database (Any) (defaults to: $statsd::influxdb_database)
  • influxdb_username (Any) (defaults to: $statsd::influxdb_username)
  • influxdb_password (Any) (defaults to: $statsd::influxdb_password)
  • influxdb_version (Any) (defaults to: $statsd::influxdb_version)
  • influxdb_flush (Any) (defaults to: $statsd::influxdb_flush)
  • influxdb_proxy (Any) (defaults to: $statsd::influxdb_proxy)
  • influxdb_proxy_suffix (Any) (defaults to: $statsd::influxdb_proxy_suffix)
  • influxdb_proxy_flushInterval (Any) (defaults to: $statsd::influxdb_proxy_flushInterval)
  • influxdb_include_statsd_metrics (Any) (defaults to: $statsd::influxdb_include_statsd_metrics)
  • influxdb_include_influxdb_metrics (Any) (defaults to: $statsd::influxdb_include_influxdb_metrics)
  • librato_email (Any) (defaults to: $statsd::librato_email)
  • librato_token (Any) (defaults to: $statsd::librato_token)
  • librato_source (Any) (defaults to: $statsd::librato_source)
  • librato_snapTime (Any) (defaults to: $statsd::librato_snapTime)
  • librato_countersAsGauges (Any) (defaults to: $statsd::librato_countersAsGauges)
  • librato_skipInternalMetrics (Any) (defaults to: $statsd::librato_skipInternalMetrics)
  • librato_retryDelaySecs (Any) (defaults to: $statsd::librato_retryDelaySecs)
  • librato_postTimeoutSecs (Any) (defaults to: $statsd::librato_postTimeoutSecs)
  • librato_includeMetrics (Any) (defaults to: $statsd::librato_includeMetrics)
  • librato_excludeMetrics (Any) (defaults to: $statsd::librato_excludeMetrics)
  • librato_globalPrefix (Any) (defaults to: $statsd::librato_globalPrefix)
  • librato_alwaysSuffixPercentile (Any) (defaults to: $statsd::librato_alwaysSuffixPercentile)
  • stackdriver_apiKey (Any) (defaults to: $statsd::stackdriver_apiKey)
  • stackdriver_source (Any) (defaults to: $statsd::stackdriver_source)
  • stackdriver_sourceFromPrefix (Any) (defaults to: $statsd::stackdriver_sourceFromPrefix)
  • stackdriver_sourcePrefixSeparator (Any) (defaults to: $statsd::stackdriver_sourcePrefixSeparator)
  • stackdriver_sendTimerPercentiles (Any) (defaults to: $statsd::stackdriver_sendTimerPercentiles)
  • stackdriver_debug (Any) (defaults to: $statsd::stackdriver_debug)
  • repeater (Any) (defaults to: $statsd::repeater)
  • repeaterProtocol (Any) (defaults to: $statsd::repeaterProtocol)
  • config (Any) (defaults to: $statsd::config)
  • env_append (Any) (defaults to: $statsd::env_append)
  • nodejs_bin (Any) (defaults to: $statsd::nodejs_bin)
  • npm_bin (Any) (defaults to: $statsd::npm_bin)
  • statsjs (Any) (defaults to: "${statsd::node_module_dir}/statsd/stats.js")
  • logfile (Any) (defaults to: $statsd::logfile)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'manifests/config.pp', line 2

class statsd::config (
  $configfile                        = $statsd::configfile,
  $port                              = $statsd::port,
  $address                           = $statsd::address,
  $backends                          = $statsd::backends,
  $debug                             = $statsd::debug,
  $mgmt_address                      = $statsd::mgmt_address,
  $mgmt_port                         = $statsd::mgmt_port,
  $statsd_title                      = $statsd::statsd_title,
  $healthStatus                      = $statsd::healthStatus,
  $dumpMessages                      = $statsd::dumpMessages,
  $flushInterval                     = $statsd::flushInterval,
  $percentThreshold                  = $statsd::percentThreshold,
  $flush_counts                      = $statsd::flush_counts,
  $prefix_stats                      = $statsd::prefix_stats,
  $keyNameSanitize                   = $statsd::keyNameSanitize,
  $deleteIdleStats                   = $statsd::deleteIdleStats,
  $deleteGauges                      = $statsd::deleteGauges,
  $deleteTimers                      = $statsd::deleteTimers,
  $deleteSets                        = $statsd::deleteSets,
  $deleteCounters                    = $statsd::deleteCounters,
  $graphiteHost                      = $statsd::graphiteHost,
  $graphitePort                      = $statsd::graphitePort,
  $graphite_legacyNamespace          = $statsd::graphite_legacyNamespace,
  $graphite_globalPrefix             = $statsd::graphite_globalPrefix,
  $graphite_prefixCounter            = $statsd::graphite_prefixCounter,
  $graphite_prefixTimer              = $statsd::graphite_prefixTimer,
  $graphite_prefixGauge              = $statsd::graphite_prefixGauge,
  $graphite_prefixSet                = $statsd::graphite_prefixSet,
  $graphite_globalSuffix             = $statsd::graphite_globalSuffix,
  $influxdb_package_name             = $statsd::influxdb_package_name,
  $influxdb_host                     = $statsd::influxdb_host,
  $influxdb_port                     = $statsd::influxdb_port,
  $influxdb_database                 = $statsd::influxdb_database,
  $influxdb_username                 = $statsd::influxdb_username,
  $influxdb_password                 = $statsd::influxdb_password,
  $influxdb_version                  = $statsd::influxdb_version,
  $influxdb_flush                    = $statsd::influxdb_flush,
  $influxdb_proxy                    = $statsd::influxdb_proxy,
  $influxdb_proxy_suffix             = $statsd::influxdb_proxy_suffix,
  $influxdb_proxy_flushInterval      = $statsd::influxdb_proxy_flushInterval,
  $influxdb_include_statsd_metrics   = $statsd::influxdb_include_statsd_metrics,
  $influxdb_include_influxdb_metrics = $statsd::influxdb_include_influxdb_metrics,
  $librato_email                     = $statsd::librato_email,
  $librato_token                     = $statsd::librato_token,
  $librato_source                    = $statsd::librato_source,
  $librato_snapTime                  = $statsd::librato_snapTime,
  $librato_countersAsGauges          = $statsd::librato_countersAsGauges,
  $librato_skipInternalMetrics       = $statsd::librato_skipInternalMetrics,
  $librato_retryDelaySecs            = $statsd::librato_retryDelaySecs,
  $librato_postTimeoutSecs           = $statsd::librato_postTimeoutSecs,
  $librato_includeMetrics            = $statsd::librato_includeMetrics,
  $librato_excludeMetrics            = $statsd::librato_excludeMetrics,
  $librato_globalPrefix              = $statsd::librato_globalPrefix,
  $librato_alwaysSuffixPercentile    = $statsd::librato_alwaysSuffixPercentile,
  $stackdriver_apiKey                = $statsd::stackdriver_apiKey,
  $stackdriver_source                = $statsd::stackdriver_source,
  $stackdriver_sourceFromPrefix      = $statsd::stackdriver_sourceFromPrefix,
  $stackdriver_sourcePrefixSeparator = $statsd::stackdriver_sourcePrefixSeparator,
  $stackdriver_sendTimerPercentiles  = $statsd::stackdriver_sendTimerPercentiles,
  $stackdriver_debug                 = $statsd::stackdriver_debug,
  $repeater                          = $statsd::repeater,
  $repeaterProtocol                  = $statsd::repeaterProtocol,
  $config                            = $statsd::config,

  $env_append  = $statsd::env_append,
  $nodejs_bin  = $statsd::nodejs_bin,
  $npm_bin     = $statsd::npm_bin,
  $statsjs     = "${statsd::node_module_dir}/statsd/stats.js",
  $logfile     = $statsd::logfile,
) {

  file { '/etc/statsd':
    ensure => directory,
    mode   => '0755',
    owner  => 'root',
    group  => 'root',
  }->
  file { $configfile:
    content => template('statsd/localConfig.js.erb'),
    mode    => '0644',
    owner   => 'root',
    group   => 'root',
  }

  file { $statsd::init_location:
    source => $statsd::init_script,
    mode   => $statsd::init_mode,
    owner  => 'root',
    group  => 'root',
  }

  file {  $statsd::init_sysconfig:
    content => template('statsd/statsd-defaults.erb'),
    owner   => 'root',
    group   => 'root',
    mode    => '0755',
  }

  file { '/var/log/statsd':
    ensure => directory,
    mode   => '0755',
    owner  => 'nobody',
    group  => 'root',
  }

  file { '/usr/local/sbin/statsd':
    source => 'puppet:///modules/statsd/statsd-wrapper',
    mode   => '0755',
    owner  => 'root',
    group  => 'root',
  }

}