Puppet Class: statsd::params

Inherited by:
statsd
Defined in:
manifests/params.pp

Overview

Class: statsd::params



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
# File 'manifests/params.pp', line 2

class statsd::params {
  $ensure                            = 'present'
  $node_module_dir                   = '/usr/lib/node_modules'
  $nodejs_bin                        = '/usr/bin/node'
  $npm_bin                           = '/usr/bin/npm'
  $env_append                        = []

  $port                              = '8125'
  $address                           = '0.0.0.0'
  $configfile                        = '/etc/statsd/localConfig.js'
  $logfile                           = '/var/log/statsd/statsd.log'

  $manage_service                    = true
  $service_ensure                    = 'running'
  $service_enable                    = true

  $manage_backends                   = true
  $backends                          = [ './backends/graphite' ]
  $debug                             = false
  $mgmt_address                      = '0.0.0.0'
  $mgmt_port                         = '8126'
  $statsd_title                      = 'statsd'
  $healthStatus                      = 'up'
  $dumpMessages                      = false
  $flushInterval                     = '10000'
  $percentThreshold                  = ['90']
  $flush_counts                      = true
  $prefix_stats                      = 'statsd'
  $keyNameSanitize                   = true

  $deleteIdleStats                   = undef
  $deleteGauges                      = undef
  $deleteTimers                      = undef
  $deleteSets                        = undef
  $deleteCounters                    = undef

  $graphiteHost                      = 'localhost'
  $graphitePort                      = '2003'
  $graphite_legacyNamespace          = true
  $graphite_globalPrefix             = 'stats'
  $graphite_prefixCounter            = 'counters'
  $graphite_prefixTimer              = 'timers'
  $graphite_prefixGauge              = 'gauges'
  $graphite_prefixSet                = 'sets'
  $graphite_globalSuffix             = undef

  $influxdb_package_name             = 'statsd-influxdb-backend'
  $influxdb_host                     = undef
  $influxdb_port                     = '8086'
  $influxdb_database                 = 'statsd'
  $influxdb_username                 = 'root'
  $influxdb_password                 = 'root'
  $influxdb_version                  = '0.8'
  $influxdb_flush                    = true
  $influxdb_proxy                    = false
  $influxdb_proxy_suffix             = 'raw'
  $influxdb_proxy_flushInterval      = '10000'
  $influxdb_include_statsd_metrics   = false
  $influxdb_include_influxdb_metrics = false

  $librato_email                     = undef
  $librato_token                     = undef
  $librato_source                    = undef
  $librato_snapTime                  = '10'
  $librato_countersAsGauges          = true
  $librato_skipInternalMetrics       = true
  $librato_retryDelaySecs            = '5'
  $librato_postTimeoutSecs           = '4'
  $librato_includeMetrics            = undef
  $librato_excludeMetrics            = undef
  $librato_globalPrefix              = undef
  $librato_alwaysSuffixPercentile    = false

  $stackdriver_apiKey                = undef
  $stackdriver_source                = undef
  $stackdriver_sourceFromPrefix      = false
  $stackdriver_sourcePrefixSeparator = '--'
  $stackdriver_sendTimerPercentiles  = false
  $stackdriver_debug                 = false

  $repeater                          = undef
  $repeaterProtocol                  = undef

  $config                            = { }

  $dependencies                      = undef

  $package_name                      = 'statsd'
  $package_source                    = undef
  $package_provider                  = 'npm'

  case $::osfamily {
    'RedHat', 'Amazon': {
      $init_location  = '/etc/init.d/statsd'
      $init_sysconfig = '/etc/sysconfig/statsd'
      $init_mode      = '0755'
      $init_provider  = 'redhat'
      $init_script    = 'puppet:///modules/statsd/statsd-init-rhel'
    }
    'Debian': {
      $init_location  = '/lib/systemd/system/statsd.service'
      $init_sysconfig = '/etc/default/statsd'
      $init_mode      = '0644'
      $init_provider  = 'systemd'
      $init_script    = 'puppet:///modules/statsd/statsd-systemd'
    }
    default: {
      fail('Unsupported OS Family')
    }
  }
}