GithubHelp home page GithubHelp logo

appliedsec / collectd Goto Github PK

View Code? Open in Web Editor NEW
26.0 5.0 16.0 445 KB

Send statistics over UDP to collectd servers from Python

License: BSD 3-Clause "New" or "Revised" License

JavaScript 47.48% Python 52.52%

collectd's Introduction

This Python module implements the binary protocol used by the collectd Network 
plugin to let you send arbitrary numeric data to collectd servers. Other than 
turning on the Network plugin on the destination collectd server, no 
configuration is needed.

Documentation may be found locally in the docs/ directory or online at
http://packages.python.org/collectd/

collectd's People

Contributors

eliandrewc avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

collectd's Issues

plugin name should be configurable

Currently the plugin name being sent in the UDP messages is always "any" and it would be nice if we could set that to something else. This should be an optional parameter to Connection, and should be unit-tested.

re-instantiating a Connection object causes __init__ to be called again

collectd.Connection objects with identical parameters are singletons, so Connection() is Connection()

However, in collectd 1.0, we fail to check in our init method whether Connection has already been initialized, and so we re-initialize all of our private data members. This has been fixed in the repo, but will not go out to PyPI until 1.0.1

unicode "specific" parameters cause message formatting errors

If we say

conn.stats.record('foo', bar = 5)

then it works just fine, but if I say

conn.stats.record(u'foo', bar = 5)

then it ends up causing a formatting error when the messages are sent in the UDP-sender thread. We should automatically coerce these values into strings.

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.