Code Monkey home page Code Monkey logo

puppet-reportprint's Introduction

What?

A simple CLI viewer for Puppet Reports

Why?

Because fuck web shit.

The main question I have is why is Puppet so slow to apply a specific catalog. This report printer will show you standard issue report metrics and such but it will also show you the resources in the report sorted by slowest evaluation time as well as the largest files being managed.

Evaluation time is how long Puppet took at run time to apply a specific resource.

A Package resource might go out to the internet to fetch the package and so you'll have long evaluation times. Services takes long to restart and so forth.

This is the information you'll find using the --evaltrace option to Puppet which have recently been included in Puppet reports.

If you run it as root it should magically figure out where to find you most recent report - usually in /var/lib/puppet/state/last_run_report.yaml but you can pass in a path using --report

An example report is included in SAMPLE.txt Tested against Puppet 3.3.0 it might have bugs against older versions.

Puppet server support

This script can also print Puppet Server reports stored with reports = store.

Supported Puppet Server commands:

report_print.rb --nodelist: List nodes and their last report status

report_print.rb --node foobar.example.com: Prints last report for node foobar.example.com

report_print.rb --node foobar.example.com --history: Prints reports ID and summary for node foobar.example.com

report_print.rb --node foobar.example.com --report-id 204212041337: Prints report 204212041337 of node foobar.example.com

Future?

  • Parse the Puppet compiler metrics that was recently introduced to figure out why compiling is slow
  • Retrieve a report from PuppetDB based on some criteria

Who?

R.I.Pienaar / [email protected] / @ripienaar / http://devco.net

puppet-reportprint's People

Contributors

ripienaar avatar roidelapluie avatar robinbowes avatar arlt avatar

Watchers

James Cloos avatar Fabian van der Hoeven avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.