Coder Social home page Coder Social logo

collectd-ceph's Introduction

ceph-collectd-plugin

A Ceph plugin for collectd using collectd's Python plugin.

This plugin takes the path to the ceph admin socket as an argument, connects to it and receives the output of perf dump. There is already a ceph plugin , maintained by the ceph developers. But this is a complete fork of collectd and is not compatible with the upstream version. Also version 4.10.1 of collectd is quite outdated.

This plugin ships with an own types.db (ceph.types.db) that is needed for the metrics received from the admin socket. Since they can change during the ceph development, I've included a small script that runs the perf schema command on the admin socket and creates a corresponding types.db for collectd.

This Script is tested with collectd version 5.1.0 on Debian wheezy and ceph version 0.72.1 (we will upgrade to firefly soon).

Install

  1. Place ceph.py in ${COLLECTD_PLUGINDIR}/python/ceph.py
  2. Place ceph.types.db in the same directory (or wherever you like to place it)
  3. Configure the plugin and the new types db (see below).
  4. Restart collectd.

Configuration

Add the following to your collectd config:

    <LoadPlugin python>
      Globals true
    </LoadPlugin>

    <Plugin python>
      ModulePath "/usr/lib/collectd/python"
      Import "ceph"

      <Module ceph>
        AdminSocket "/var/run/ceph/ceph-*.asok"
      </Module>
    </Plugin>
TypesDB "/usr/share/collectd/types.db" "/usr/lib/collectd/python/ceph.types.db"

The plugin will find all admin sockets matching the shell expression and query them. The results will be tagged with the name of the corresponding daemon (ex.: osd.12) in the plugin_instance field.

Contribution

If you experience any errors, please open an issue on github!

collectd-ceph's People

Contributors

crapworks avatar valerytschopp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

collectd-ceph's Issues

RuntimeError: type osd needs 63 values, got 69

Hello,

You define too many data sources per type. With recent Ceph, create_types_db.py will create 69 datasources for "osd" type, while the compile time limit is 63 so it errors out. However even if I trim the list down to 63, I get:

collectd[24654]: format_graphite: target buffer too small
host01 collectd[24654]: Filter subsystem: Built-in target `write': Dispatching value to all write plugins failed with status -1.

Per collectd devs, there should be only one data source per type:

https://www.mail-archive.com/[email protected]/msg02600.html

Regards,
Vedran

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.