Puppet Class: stackdriver::plugin::memcached

Inherited by:
stackdriver::plugin::memcached::config
Defined in:
manifests/plugin/memcached.pp

Overview

vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 foldmethod=marker

Class: stackdriver::plugin::memcached

Enable Memcached Agent Plugin for Stackdriver Agent

Parameters


conf
  • Default - /opt/stackdriver/collectd/etc/collectd.d/memcached.conf

  • Plugin configuration file

host
  • Default - localhost

  • Target host

port
  • Default - 11211

  • Target port

Usage


Puppet Code

Enable Memcached plugin via Puppet CODE:

include '::stackdriver::plugin::memcached'

Hiera

Enable Memcached plugin via Hiera:

stackdriver::plugins:
 - 'memcached'

Parameters:

  • config (Any) (defaults to: '/opt/stackdriver/collectd/etc/collectd.d/memcached.conf')
  • host (Any) (defaults to: 'localhost')
  • port (Any) (defaults to: 11211)


39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'manifests/plugin/memcached.pp', line 39

class stackdriver::plugin::memcached(

  $config   =  '/opt/stackdriver/collectd/etc/collectd.d/memcached.conf',
  $host     = 'localhost',
  $port     = 11211,

) {

  Class['stackdriver'] -> Class[$name]

  validate_string ( $config )
  validate_string ( $host   )

  contain "${name}::config"

}