Git Product home page Git Product logo

puppetserver-metrics's Introduction

Puppet Server Metrics

This Python3 script uses the Puppet Server V2 metrics API to repeatedly show performance metrics of your Puppetserver. The curses library is used to present the metrics using ASCII graphics in a terminal window.

This script might be useful for consultants visiting a Customer to investigate suspected performance problems with the Puppetserver. It only needs a default Python interpreter and provides graphical monitoring without any additional software installation. But it can of course be used by every other puppeteer as well. See the following screenshot for an example output.

Screenshot

You can use the --help argument to display the usage message:

usage: puppetserver-metrics.py [-h] [-v] [--interval INTERVAL]
                               [--server SERVER] [--key KEY] [--cert CERT]
                               [--cacert CACERT] [--no-proxy]

optional arguments:
  -h, --help           show this help message and exit
  -v, --verbose        be more verbose
  --interval INTERVAL  the interval between updates in seconds
  --server SERVER      the Puppetserver to use (default 'puppet')
  --key KEY            the SSL private key used for authentication
  --cert CERT          the SSL client certificate
  --cacert CACERT      the SSL certificate file to verify the peer
  --no-proxy           ignore proxy environment variables

Normally the screen is updated every three seconds. You can set a different refresh rate using the --interval parameter.

Fun Fact: If the appearance of the graphics looks familiar to you, then you are probably old enough to have worked with the VAX/VMS respectively OpenVMS operating system: the layout of the metric panels has been inspired by the VMS MONITOR SYSTEM utility.

Installation and configuration

See the separate INSTALL document.

Tuning

Details about the output and some tuning hints are given in the additional TUNING reference.

puppetserver-metrics's People

Contributors

smoeding avatar

Watchers

 avatar

puppetserver-metrics's Issues

Save metrics in a file

The program should provide a commandline switch to save some KPI values to a file (using CSV format). These values could be used for a more detailed analysis or the generation of graphics.

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.