kimor79 / gollectd Goto Github PK
View Code? Open in Web Editor NEWA go parser for the collectd binary protocol
License: BSD 3-Clause "New" or "Revised" License
A go parser for the collectd binary protocol
License: BSD 3-Clause "New" or "Revised" License
Hi,
First: Awesome work getting a native entry-point for CollectD!
I'm trying to connect my collectd setup to my InfluxDB test environment, and things seems to be working somewhat. The odd thing is that I'm seeing triple inserts for the same value/dsname:
1415750557 263910001 longterm gauge 0.05 REDACTED load load
1415750557 263900001 longterm gauge 0.05 REDACTED load load
1415750557 263890001 longterm gauge 0.05 REDACTED load load
1415750547 262140001 longterm gauge 0.05 REDACTED load load
1415750547 262130001 longterm gauge 0.05 REDACTED load load
1415750547 262120001 longterm gauge 0.05 REDACTED load load
1415750537 260370001 longterm gauge 0.05 REDACTED load load
1415750537 260360001 longterm gauge 0.05 REDACTED load load
I couldn't see that you're actually testing the output of Values in gollectd_test, so this might be something that slipped through. Anyway, let me know if you need more info and I'll be happy to provide you with it.
--- a/gollectd.go
+++ b/gollectd.go
@@ -282,6 +282,7 @@ func TypesDB(b []byte) (Types, error) {
lines := strings.Split(content, "\n")
for i, line := range lines {
+ line = strings.TrimSpace(line)
// Skip empty & comment lines
if line == "" || line[0] == '#' {
continue
Line 125 in cf6dec9
will panic if less than 2 bytes are available to be read. This occurs during a port scan of a collectd UDP input. See influxdata/influxdb#3008 for details on how to reproduce this issue.
Hello,
Can you please tag and version this project?
I am the Debian Maintainer for gollectd and versioning would help Debian keep up with development.
It might not be a real issue for some people, but using it with InfluxDB creates series like host/cpu-0/cpu-idle.
The '/' separator is a bit annoying here, considering that a lot of graphing software (like Grafana) are using the "Graphite standard" which is the dot.
I know that configuration can happen in another place, but do you think we could make it configurable so that the '/' could be change to another character (or string)?
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.