Code Monkey home page Code Monkey logo

diamond-boshrelease's Introduction

BOSH Release for Diamond

The purpose of this release is running some specialized collectors to gather metrics from external platforms and send them to different systems. For regular monitoring of the vms, collectd is better.

Specialized collectors are:

  • Ontapclustercollector, to be able to collect metrics from NetAPP
  • VMWARE collector to gather VCenter metrics.

Usage

By default all collectors shipped with Diamond are available, but you can add your own collectors and user_scripts via src folder and create a new BOSH Release. We are using submodules, so you have to run:

git submodule init
git submodule update

To test this bosh release (in warden), first upload it to your bosh:

bosh target BOSH_HOST
git clone https://github.com/springerpe/diamond-boshrelease.git
cd diamond-boshrelease
bosh_prepare
bosh create release --force
bosh upload release

Then define some configuration properties, Diamond has a lot of different handlers to send metrics to, in this case we define Graphite and we enable the default collectors:

  properties:
    diamond:
      collector:
        hostname: collector1
        interval: 60
      handlers:
        diamond.handler.graphite.GraphiteHandler:
          batch: 1
          host: "graphite.example.com"
          port: 2003
          timeout: 15
      collectors:
        CPUCollector:
          enabled: True
        DiskSpaceCollector:
          enabled: True
        DiskUsageCollector:
          enabled: True
        LoadAverageCollector:
          enabled: True
        MemoryCollector:
          enabled: True
        VMStatCollector:
          enabled: True
        NetworkCollector:
          enabled: True

and deploy it (run templates/make_manifest warden or use manifest v2).

A specialized collector is a collector with its own configuration file, with the same file name as the collector class, for that reason the name of the keys of the hash in collectors_config is important, for example:

      collectors_config:
        OntapClusterCollector:
           ...

Will create a configuration file called OntapClusterCollector.conf with the rest of properties defined there. You can define as many configurations as you want.

As example of specialized collector, this is how to define the OntapClusterCollector

Author

José Riguera López (SpringerNature) ([email protected])

License

MIT License

diamond-boshrelease's People

Contributors

jriguera avatar

Stargazers

 avatar  avatar

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.