O'Reilly logo

Puppet Reporting and Monitoring by Michael Duffy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Retrieving Data with the PuppetDB API

In the previous chapter, we learned how to set up PuppetDB. Now, it's time to put it to work. PuppetDB is more than just a storage engine; it also contains a powerful query API that allows you to interactively query data about your Puppet infrastructure. By using a combination of REST calls with the provided query language, you will be able to find enormous amounts of data related to your Puppet-managed infrastructure.

In this chapter, we're going to take a look at the following topics:

  • The hows, whats, and whys; a brief introduction to the query API
  • Exploring and using endpoints
  • Getting acquainted with some basic queries

By the end of this chapter, you should be fully comfortable working with the PuppetDB ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required