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

Chapter 7. Writing Custom Reports with PuppetDB

In the previous chapter, we learned about the PuppetDB query API, what it can be used for, and how to leverage the power of its built-in query language. In this chapter, we're going to take that knowledge and use it to create a simple but effective reporting application written in Ruby. We're going to explore the following topics:

  • Creating a skeleton Ruby application
  • Connecting to PuppetDB using JSON
  • Retrieving facts
  • Retrieving events and reports using multiple endpoints

At the end of this chapter, you should be comfortable making use of the PuppetDB query API in your own applications and understand how to process the JSON output of the API.

Creating a basic query application

We're going to start with a ...

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