Coder Social home page Coder Social logo

v-a / cookbook_monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codio/cookbook_monitor

0.0 2.0 0.0 516 KB

An OpsCode Chef cookbook for monitoring services, wrapping the Sensu cookbook.

Home Page: http://community.opscode.com/cookbooks/monitor

Ruby 98.82% Shell 1.18%

cookbook_monitor's Introduction

Sensu Monitoring Chef Cookbook

Monitor is a cookbook for monitoring services, using Sensu, a monitoring framework. The default recipe installs & configures the Sensu client (monitoring agent), as well as common service check dependencies. The master recipe installs & configures the Sensu server, API, dashboard, & their dependencies (eg. RabbitMQ & Redis). The remaining recipes are intended to put monitoring checks in place in order to monitor specific services (eg. recipe[monitor::redis]).

Learn more about Sensu Here.

Requirements

The Sensu cookbook.

Attributes

node["monitor"]["master_address"] - Bypass the chef node search and explicitly set the address to reach the master server.

node["monitor"]["environment_aware_search"] - Defaults to false. If true, will limit search to the node's chef_environment.

node["monitor"]["use_local_ipv4"] - Defaults to false. If true, use cloud local_ipv4 when available instead of public_ipv4.

node["monitor"]["sensu_plugin_version"] - Sensu Plugin library version.

node["monitor"]["additional_client_attributes"] - Additional client attributes to be passed to the sensu_client LWRP.

node["monitor"]["default_handlers"] - Default event handlers.

node["monitor"]["metric_handlers"] - Metric event handlers.

Usage

Example: To monitor the Redis service running on a Chef node, include recipe[monitor::redis] in its run list.

Development

Cookbooks are strictly versioned, and the Chef server will lock and freeze each cookbook you upload. This means that unless you bump the version number of the cookbook, the Chef server will not update it when you upload.

All Codio servers belong to a Chef role and environment, and each environment MUST specify the version which that environment will use. This protects that environment against new cookbooks that may not yet be ready. Once they are ready, a simple edit of the environment will suffice.

In order to develop and test new cookbook versions, you will need to bump the version of the cookbook just the once, and then upload that. Because the production environment uses specific cookbook versions, you are safe to upload new version(s) and test these before eventually promoting your new version to production.

Wherever possible, cookbooks should first be tested locally using Vagrant, and development should take place in a branch. The cookbook minor version number should be incremented to ensure safe usage of the Cookbook.

cookbook_monitor's People

Watchers

 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.