appliedsec / collectd Goto Github PK
View Code? Open in Web Editor NEWSend statistics over UDP to collectd servers from Python
License: BSD 3-Clause "New" or "Revised" License
Send statistics over UDP to collectd servers from Python
License: BSD 3-Clause "New" or "Revised" License
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/
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.
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
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.
Will this be ported to work with python 3?
https://caniusepython3.com/project/collectd
When the program exits a last snapshot should be taken and sent to collectd.
Thanks.
We should be able to say
>>> import collectd
>>> collectd.__version__
'1.0.2'
>>> collectd.__version_info__
(1, 0, 2, 'final', 0)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.