Forge Home

puppet2newrelic

Puppet report processor using New Relic Insights

2,217 downloads

2,217 latest version

5.0 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.

Version information

  • 0.1.0 (latest)
released Jan 17th 2020
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 7.0.0
  • , , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'beersy-puppet2newrelic', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add beersy-puppet2newrelic
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install beersy-puppet2newrelic --version 0.1.0

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

beersy/puppet2newrelic — version 0.1.0 Jan 17th 2020

Build Status

puppet2newrelic

A module that installs report processors capable of sending Puppet reports to New Relic.

Table of Contents

  1. Description
  2. Setup - The basics of getting started with puppet2newrelic
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

This module will install the newrelic_insights report handlers. It also contains Puppet code to manage all of the settings required by them.

Setup

The report handlers can be set up manually or using the supplied puppet code:

Manual Setup

To use this module you will need a couple of things, firstly your report handler of choice will need to be added to the puppet.conf:

reports = newrelic_insights,console,puppetdb

You will also need to create a newrelic_insights.yaml at you confdir (usually /etc/puppetlabs/puppet) that looks like this:

---
"account_id": "9999999"
"insights_key": "NRII-Dq27pLP6mwdoSqLH1zZl4Fcyn0Nj4GTU"

Automated setup

I have included a class that can do all of this for you:

Class: puppet2newrelic

It is important to note that this class requires a restart of the puppet server. This can be implemented with something like this:

class { 'puppet2newrelic':
  account_id   => "9999999"
  insights_key => "NRII-Dq27pLP6mwdoSqLH1zZl4Fcyn0Nj4GTU"
  notify       => Service['pe-puppetserver'],
}

Parameters

account_id

Your New Relic Account ID

insights_key

Your New Relic Insights Key

Release Notes/Contributors/Etc. Optional

0.1.0 Initial release