Giter Club home page Giter Club logo

graphite-zenossmetrics's Introduction

graphite-zenossMetrics

Automatically creates symlinks to Zenoss performance data rrd files for visualisation and analysis in Graphite.

Zenoss is a unified monitoring solution, available in Enterprise and Open Source versions. Zenoss collects performance metric values and stored them in rrd files.

Graphite natively supports rrd. By symlinking to Zenoss rrd files from a Graphite server, Graphite's powerful visualisation, analytics and dashboarding may be applied to Zenoss metrics for free.

Note: graphite-zenossMetrics is currently designed to symlink metrics for Linux servers and network devices. However, adding Windows and other devices would be trivial.

Requirements

  • A Zenoss installation, with Zenoss performance data directory, (/opt/zenoss/perf/ by default) exported as an NFS share.
  • A Graphite installation, with rrd enabled and the Zenoss performance data NFS share mounted.

Configuration

Configuration is set in config.py.

Set zenossRoot to the location of the Zenoss performance data NFS mount:

# root directory of Zenoss metric RRD files
# this should be an nfs mount to /opt/zenoss/perf on the Zenoss server
zenossRoot = '/mnt/nfs/zenossrrd/perf'

Set graphiteRoot to the location under which the Zenoss metrics will be symlinked:

# root path of Zenoss metrics
graphiteRoot = '/opt/graphite/storage/rrd/Zenoss'

Add regexes that match the hostnames of the devices whose metrics you wish to symlink to:

# regexes to match Zenoss device names
devicePatterns = [
    '.*'
]

Enable/Disable logging of symlink creation and device cleanup

# log symlink creation and deleted device cleanup to stdout
logging = False

Enable/Disable device cleanup for devices that have been deleted from Zenoss

# delete old devices from graphiteRoot
deleteOld = True

Usage

Once configuration is complete, simply run graphite-zenossMetrics.py with Python:

>python graphite-zenossMetrics.py

To keep your symlinks up to date, create a cron job to run this regularly. Any new devices will be added and any devices no longer in Zenoss will be removed.

graphite-zenossmetrics's People

Contributors

amorphic avatar jwhited avatar

Watchers

 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.