Forge Home

puppet2newrelic

pdk
Puppet report processor using New Relic Insights

Abir Majumdar

beersy

1,665 downloads

1,665 latest version

5.0 quality score

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
  • CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Scientific
    ,
    Debian
    ,
    Ubuntu

Start using this module

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

Add this declaration to your Puppetfile:

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

Add this module to a 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