Skip to Main Content
Puppet Reporting and Monitoring
book

Puppet Reporting and Monitoring

by Michael Duffy
June 2014
Beginner to intermediate content levelBeginner to intermediate
186 pages
4h 31m
English
Packt Publishing
Content preview from Puppet Reporting and Monitoring

Feeding data into Dashing

As we've already covered, Dashing uses a series of scheduled jobs written in Ruby that will collect any data that we are interested in. A library called rufus-scheduler controls the scheduling; the rufus-scheduler library allows for great flexibility as to when and how jobs are run, meaning that you could have a lightweight job that scrapes data from a public API and runs every five seconds, and another job that will run every 30 minutes and perform a heavy query on a database.

We're going to create a single job called puppet.rb, and this Ruby code is going to perform the following actions:

  • Gather metrics using PuppetDB's metrics endpoint
  • Gather a list of nodes using PuppetDB's nodes endpoint
  • Use the nodes gathered to gather ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Puppet: Mastering Infrastructure Automation

Puppet: Mastering Infrastructure Automation

Felix Frank, Martin Alfke, Alessandro Franceschi, Jaime Soriano Pastor, Thomas Uphillis

Publisher Resources

ISBN: 9781783981427Supplemental Content