Coder Social home page Coder Social logo

puppet-ss_graphite_client's Introduction

Graphite library

Installing

Add the following to your manifest:

class {'ss_graphite_client':
	graphite_server => 'metrics.my.com',
}

Customising the prefix

By default, graphite-functions library will try to figure out a prefix that makes some sense. However it's rather likely you will need to customise it. In that case, write the custom prefix to /opt/graphite/prefix and it will be automatically picked up.

Enabling particular metrics

Metrics are grouped in classes. You enable them by including the relevant class:

include ss_graphite_client::core

Adding custom metrics

We recommend the following approach when defining new metrics.

First, copy one of the following templates as your base:

These show you how to include the graphite-functions library. This library allows you to easily send metrics to graphite using the functions they expose (such as send or sendHash). By convention, the metric key is built by applying the prefix (also exposed from the library).

The metrics are enabled by simply adding them to /opt/graphite/scripts or /opt/graphite/scripts-daily. Bundle the file resources in a metric class, for example:

class my_metrics::filesystem {
	file {'/opt/graphite/scripts/inodes':
		owner   => root,
		group   => root,
		mode    => 755,
		source  => 'puppet:///modules/my_metrics/graphite-scripts/inodes',
	}
	
	# ... could contain more metrics
}

Once this is done, the metric can be added thus:

include my_metrics::filesystem

puppet-ss_graphite_client's People

Contributors

mateusz avatar jakedaleweb avatar indygriffiths avatar stojg avatar mcjoppy avatar

Watchers

Simon Gow avatar James Cloos avatar Matt Peel avatar Charlie Bergthaler avatar  avatar Ben Percy avatar  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.