
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
collectd-protocol
Advanced tools
This is a NodeJS module for decoding and encoding Collectd's binary protocol collectd. It supports decoding/encoding binary protocol from versions 4 and 5 of collectd.
This module allows to build a binary protocol based on Collectd's specification using custom string parts. This is useful when you need to send some kind of metadata with the metrics. It's not guaranteed that the custom protocol works with the protocol defined in the specification. Use at you own risk.
To exchange metrics with a custom tags
part, both ends would have to support the following configuration:
var binaryData = encoder.encodeCustom(originalJsonData, { 0x0099: 'tags' });
var jsonData = decoder.decodeCustom(binaryData, { 0x0099: 'tags' });`
Would produce something like:
[
{
host: 'localhost',
time: 1455098772,
interval: 10,
plugin: 'GenericJMX',
plugin_instance: 'MemoryPool|Eden_Space',
type: 'custom',
type_instance: 'committed',
dstypes: [ 'gauge' ],
values: [ 152567808.92 ],
dsnames: [ 'value' ],
tags: 'host=localhost,cluster=dev'
}
]
In the custom part configuration we have chosen the part type id 0x0099
because it's currently unused in the binary protocol specification. Note that future revisions of the binary protocol may use your custom part ids.
npm install collectd-protocol --save
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
grunt test
0.0.1
timer
and interval
properties whether is high resolution or not0.0.2
node_modules
directory from npm_ignore0.1.0
0.1.1
0.2.0
0.3.0
FAQs
A NodeJS module for parsing the CollectD binary protocol
The npm package collectd-protocol receives a total of 1 weekly downloads. As such, collectd-protocol popularity was classified as not popular.
We found that collectd-protocol demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.