Forge Home

newrelic_plugin_agent

Puppet newrelic-plugin-agent module

10,357 downloads

10,120 latest version

1.4 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.9.1 (latest)
  • 0.9.0
released Dec 8th 2014
This version is compatible with:
  • Puppet Enterprise 3.2.x
  • Puppet 3.x
  • RedHat, CentOS, OracleLinux, Debian, Ubuntu

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'lex-newrelic_plugin_agent', '0.9.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add lex-newrelic_plugin_agent
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install lex-newrelic_plugin_agent --version 0.9.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

lex/newrelic_plugin_agent — version 0.9.1 Dec 8th 2014

This is module for managing modular newrelic agent from MeetMe

It's still work-in-progress, but already can be used in production.
Status:

  • Installs, configures and starts without problems
  • All services supported (but not with all options)
  • No multi-daemon support (for now)
  • Tested only on Debian 7, although it have RPM-based distros support
  • Almost no docs except example (not with all options) config

Example config:

class { newrelic_plugin_agent:
  license_key => 'THIS_IS_YOUR_LICENSE_KEY',
  newrelic_api_timeout => '10',
  wake_interval => '60',
  enable => true,
  user => 'newrelic',
  restart => true,
  pidfile => "/var/run/newrelic/newrelic-plugin-agent.pid",
}

newrelic_plugin_agent::memcached { 'memcached 1':
  host => 'localhost',
  port => '11211',
}

newrelic_plugin_agent::apache_httpd { 'apache 1': 
  scheme => 'http',
  host => 'localhost',
  verify_ssl_cert => 'True',
  port => '80',
  path => '/server-status'
}

newrelic_plugin_agent::mongodb { 'mongo 1':
  host => 'localhost',
  port => '27017',
  ssl => 'False',
  databases => [ 'first-db', 'second-db' ]
}

newrelic_plugin_agent::nginx { 'nginx 1':
  scheme => 'http',
  host => 'localhost',
  verify_ssl_cert => 'False',
  port => '80',
  path => '/server-status'
}

newrelic_plugin_agent::php_fpm { 'php-fpm 1':
  scheme => 'https',
  host => 'localhost',
  port => '443',
  path => '/fpm_status',
  query => 'json',
}

newrelic_plugin_agent::redis { 'redis 1': 
  host => 'localhost',
  port => '6379',
  #path => '/path/to/unix/socket',
  #db_count => '1',
  #password => 'pass',
}

newrelic_plugin_agent::riak { 'riak 1': 
  host => 'node0.riak0.scs.mtmeprod.net',
  verify_ssl_cert => 'true',
  port => '8098'
}

newrelic_plugin_agent::couchdb { 'couchdb 1': 
  host => 'localhost',
  verify_ssl_cert => 'true',
  port => '5984',
  username => 'foo',
  password => 'bar',
}

newrelic_plugin_agent::uwsgi { 'uwsgi 1': 
  host => 'localhost',
  port => '1717',
  path => '/path/to/unix/socket',
}

newrelic_plugin_agent::haproxy { 'haproxy 1': 
  name => 'haproxy',
  scheme => 'http',
  host => 'localhost',
  port => '8080',
  verify_ssl_cert => 'true',
  path => '/haproxy?stats;csv',
}

newrelic_plugin_agent::postgresql { 'postgresql 1': 
  host => 'localhost',
  port => '5432',
  user => 'postgres',
  dbname => 'postgres',
  superuser => 'False',
}

newrelic_plugin_agent::pgbouncer { 'pgbouncer 1': 
  host => 'localhost',
  port => '6000',
  user => 'stats',
}

newrelic_plugin_agent::php_npc { 'PHP APC 1': 
  scheme => 'http',
  host => 'localhost',
  verify_ssl_cert => 'true',
  port => '80',
  path => '/apc-nrp.php',
}

newrelic_plugin_agent::rabbitmq { 'RabbitMQ 1':
  host => 'localhost',
  port => '15672',
  verify_ssl_cert => 'true',
  username => 'guest',
  password => 'guest',
}

newrelic_plugin_agent::elasticsearch { 'ElasticSearch 1':
  host => 'localhost',
  port => '9200',
  scheme => 'http',
}