Stream

Join this community to post or comment
 
I'm happy to announce that collectd 5.7 is available for download. This is a feature release which adds plugins for #DPDK, huge pages, Intel RDT and +Prometheus Monitoring and adds features to existing plugins.

Detailed release notes: https://github.com/collectd/collectd/releases/tag/collectd-5.7.0
Download. On this page you can download the collectd sources as GZip or BZip2 compressed tar archive. Some Linux distributions provide binary packages of collectd – you can find links to the package description pages where appropriate. Also on this page are links to numerous user-provided binary ...
4
3
Add a comment...

Ray Tan

Diskussion  - 
 
Hello everybody,

Can collectd access the third application and collect business data by the third application?
If yes, can we use which plugins to do it?
Or can collectd timely pull business data from the third application? Thanks you very much.

Thanks
Ray
2
Stefan Nehlsen's profile photoRay Tan's profile photo
2 comments
Ray Tan
 
Thanks Stefan. :)
Add a comment...

shanfeng Jiang

Diskussion  - 
 
Hi All,

I want to use collectd to collect the cost of my program which needs to write some data to collectd and then collectd sends to InfluxDB. I searched the Internet and could not find a suitable lib, plugin or api. I can not figure out where to get it solved.

Any help would be very much appreciated.

shanfeng
hfutjiang@gmail.com
1
Sebastian “tokkee” Harl's profile photoshanfeng Jiang's profile photo
2 comments
 
+Sebastian Harl
Thanks for your answering.
My requirement is below,
Our cluster(java) needs to statistics the communication cost of thrift connections. So we design a module to calculate the information and send analysis to influxdb motoring system. The module is bounded with the version of software. I am looking for a more portable solution which can collect analysis and forward it. And collectd may be a good choice.

But I never use it before. I search collectd.org and read the contents of unixsock plugin. And I still donot know how to use it.

Would you like to give me more advice?
Looking forward to you.
collectd.org - Start page – collectd – The system statistics collection daemon
Add a comment...
 
Don't feel like writing #collectd plugins in C? How about #Golang ?

With the "collectd.org/plugin" package you can write  collectd plugins in Go, compile your code to a shared object (a .so file) and load the shared object into collectd, exactly like a C-based plugin.

The code is available in the collectd/go-collectd GitHub repository: https://github.com/collectd/go-collectd/
The GoDoc link below should tell you everything there is to know about the API.

Patches and bug reports are of course always welcome :)
Package plugin exports the functions required to write collectd plugins in Go.
1
Add a comment...

Geoff Kramer

Diskussion  - 
 
Is there any reason generic-jmx.jar should not be backwards compatible?

The issue I have is that I am using collectd 5.4.1with genericjmx to monitor a proprietary
application. The challenge that I am running into is that some of the
exposed MBeans return relevant data as an array:

(this is output of a get -b with jmxterm)

#mbean = com.package:id=my_id,name=random_counter,type=TimeSeries:
ValuePerMinute = [ 430216, 430216, 430216, 430216, 430216, 430216, 430216,
430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216,
430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216,
430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216,
430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216,
430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216,
430216, 430216, 430216, 430216, 430216, 430216, 430216, 430216 ];


Now it looks like this has been resolved in 5.5.2 possibly, however make on 5.5.2 and cping the (collectd-api and/or generic-jmx) jars in place prevents any genericjmx results from being returned. Or does anyone have a suggestion on how to handle this?
1
Geoff Kramer's profile photoFlorian “octo” Forster's profile photo
4 comments
 
+Geoff Kramer You're welcome :) Are you planning on creating a Pull Request for your changes?
Add a comment...

David-Allan

Diskussion  - 
 
Hi folks,

I am having some issues collecting jmx metrics from tomcat. I have checked in /usr/lib64/collectd/ and there is no java plugin there.

I have also searched using yum search to see if I can install the collectd-java plugin but it's not available from the repo.

I'm using collectd 5.5.0.580 on RHEL 6.8

Is there somewhere I can get the collectd java plugin from?

1
Add a comment...

tim verwimp

Diskussion  - 
 
I'm using collectd to monitor the status of my server.
In my plugin LoadPlugin load, it sends out 3 values:
   .shortterm
   .midterm
   .longterm
Is it possible to filter out .shortterm and .longterm so it will only send out .midterm?

can anybody explain me how to do this?
1
tim verwimp's profile photo
 
This what I already have but this blocks the hole load plugin ofcourse. The only thing is how can specifically block the longterm and shortterm?

Are these types, or wat parameter should i use?

LoadPlugin match_regex
<Chain "PostCache">
 <Rule>
  <Match regex>
   Plugin "^load$"
   Type ".*"
  </Match>
  Target stop
 </Rule>

 # Default Target
 Target "write"
</Chain>
Add a comment...

Kui Yuan

Diskussion  - 
 
hello

I tried to monitor the the machine's traffic rate, ie, bytes per seconds, but I got accumulated bytes

```
time host instance type value
2015-12-09T07:40:44.711518Z "localhost" "eth0" "if_octets" 3143180744
2015-12-09T07:40:49.711476Z "localhost" "eth0" "if_octets" 3143182227
2015-12-09T07:40:54.711829Z "localhost" "eth0" "if_octets" 3143182856
2015-12-09T07:40:59.711906Z "localhost" "eth0" "if_octets" 3143183111
2015-12-09T07:41:04.712183Z "localhost" "eth0" "if_octets" 3143185899
2015-12-09T07:41:09.71305Z "localhost" "eth0" "if_octets" 3143188055
2015-12-09T07:41:14.711672Z "localhost" "eth0" "if_octets" 3143189590
```

which I expected something like this.

```
time host instance type value
2015-12-09T07:40:44.711518Z "localhost" "eth0" "if_octets_per_second" 80744
2015-12-09T07:40:49.711476Z "localhost" "eth0" "if_octets_per_second" 2227
2015-12-09T07:40:54.711829Z "localhost" "eth0" "if_octets_per_second" 3856
2015-12-09T07:40:59.711906Z "localhost" "eth0" "if_octets_per_second" 13111
2015-12-09T07:41:04.712183Z "localhost" "eth0" "if_octets_per_second" 8991
2015-12-09T07:41:09.71305Z "localhost" "eth0" "if_octets_per_second" 0551
2015-12-09T07:41:14.711672Z "localhost" "eth0" "if_octets_per_second" 2321
```



## here is my config

```
FQDNLookup true
BaseDir "/home/kui.yuan/collectd-5.5.0/var/lib/collectd"
PIDFile "/home/kui.yuan/collectd-5.5.0/var/run/collectd.pid"
PluginDir "/home/kui.yuan/collectd-5.5.0/lib/collectd"
TypesDB "/home/kui.yuan/collectd-5.5.0/share/collectd/types.db"

Interval 5

MaxReadInterval 86400
Timeout 2
ReadThreads 5
WriteThreads 5

LoadPlugin syslog
LoadPlugin logfile

<Plugin logfile>
LogLevel info
File "/tmp/collectd.log"
Timestamp true
PrintSeverity false
</Plugin>

LoadPlugin cpu
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
LoadPlugin network

<Plugin cpu>
ReportByCpu false
ReportByState true
ValuesPercentage true
</Plugin>

<Plugin interface>
Interface "eth0"
IgnoreSelected false
</Plugin>

<Plugin network>
Server "localhost" "25826"
</Plugin>
```

## my version
collectd 5.5.0

## my os
CentOS release 6.7 (Final)

what wrong with it?

I didnot get the data as describe in the documentation - https://collectd.org/wiki/index.php/Plugin:Interface

> The Interface plugin collects information about the traffic (octets per second), packets per second and errors of interfaces
1
Kui Yuan's profile photoBEN KHLIFA Fahmi's profile photo
3 comments
 
same problem here :'(

Add a comment...
 
Interested in getting involved with open source development but never knew where to start? There is a nice little starter project for +collectd and I'm happy to mentor whoever is willing to give it a try. :-)
#696 requests a native write_influxdb plugin and #1319 proposes such a plugin, but needs to be simplified before it can be merged. Since there clearly is interest in such a plugin, I'd like to desc...
1
Add a comment...
 
#golang   1.5 will allow calling Go code from C; time to start working on #collectd plugins in Go. Since this is very experimental code I'm eagerly awaiting any feedback you have :-)
3
Add a comment...

Created by

Emrecan Tarakci

Diskussion  - 
 
I would like to use Collectd in order to gather metrics of UBIFS and UBI MTD. Would you recommend some sort of method that enables to perform such task? Because, there is no built-in plugin for it.
Thank you in advance.
1
Add a comment...

Ray Tan

Diskussion  - 
 
Hello, I have some questions for collectd, If it is not suitable that send the questions at the forum. please pardon me. Sorry for it.

I want to enable write_riemann by configure, but i get the below error message:
write_riemann . . . . no (pkg-config doesn't know libriemann-client)
I had installed collectd-write_riemann, riemann-c-client, protobuf-c. Which packages do i miss?
Please give me some hide. Thanks you very much.
1
Florian “octo” Forster's profile photoRay Tan's profile photo
11 comments
Ray Tan
 
Thanks, +Florian Forster :)
Add a comment...
 
Hey folks,

Regarding collectd.org/wiki, when Googling for information is there any reason the edit pages are in the results? Shouldn't those be excluded with robots.txt or meta tags? For example https://www.google.com/search?q=collectd+mysql+edit or better yet https://www.google.com/search?q=collectd%20tail%20example.

Just wondering,
B
1
Brandon Schlueter's profile photoFlorian “octo” Forster's profile photo
3 comments
 
Wikipedia is a huge, high quality corpus and uses MediaWiki.
Add a comment...
 
 
collectd 5.5.2 and 5.4.3 are available. These new releases fix a number of bugs, most importantly the security issue CVE-2016-6254. We advise all users to upgrade as soon as possible. Updated Debian packages are available and RedHat packages are currently in testing.

Full ChangeLog available here: https://github.com/collectd/collectd/releases/tag/collectd-5.5.2
Download. On this page you can download the collectd sources as GZip or BZip2 compressed tar archive. Some Linux distributions provide binary packages of collectd – you can find links to the package description pages where appropriate. Also on this page are links to numerous user-provided binary ...
2
Add a comment...

Steve Bistline

Diskussion  - 
 
Hi All,

I have collectd 5.5 in place and am trying to get MQTT working. I do not have the plugin, can't figure out where to get it or how to build it.

Any help would be very much appreciated.

Steve
srbistline@gmail.com
1
Florian “octo” Forster's profile photo
 
I think this was answered elsewhere, but for the record: the MQTT plugin will be part of the upcoming 5.6 release and is not yet included in 5.5 and earlier.
Add a comment...
 
 
I took a little time to get my collectd gRPC (server) plugin into an imho minimally usable state. I'm still unsure whether this is idiomatic C++ but I don't totally hate it so I guess it's fine ;-)

#collectd #grpc #c++
This new plugin embeds a gRPC server (http://grpc.io) into collectd. For now, it supports dispatching and querying values.
2
Add a comment...

mwareh3

Diskussion  - 
 
Hello. I am joining a project using collectd. I would like to ask a few questions. Is this a suitable forum?
1
mwareh3's profile photo
7 comments
mwareh3
 
As reported by the disk plugin, do the disk_octets have a time associated with them. Is the number since the collectd's last read?
Add a comment...

Richard Fu

Diskussion  - 
 
Hello,can I change data type in types.db for existing data set? e.g. I want change data type from "COUNTER" to "GAUGE" in network traffic data set.
 if_octets  rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295
1
Florian “octo” Forster's profile photoRichard Fu's profile photo
2 comments
 
for example  "LoadPlugin network", how can I implement my requirements? 
Add a comment...
 
 
gRPC plugin for collectd

So, the inevitable has happened: I hacked a gRPC plugin for collectd, currently allowing to dispatch and query (list) values. I think it nicely demonstrates how things work and is easy to extend to support more features. Anyway, I'm sure there are a few things that could be cleaned up on the C++ side (I'm not a very good friend with that language). I'm hoping that someone else will pick it up from here ;-)

As a nice side-effect, the change introduces support for C++ and protocol buffers to collectd and the build system. Also, it provides a more complete example of an asynchronous gRPC server than the examples shipped along with the upstream project.

#grpc   #protobuf   #collectd   #hacking  
1
Add a comment...
 
+collectd determined as the #1 metrics collection tool in the 2015 Monitoring Survey. Yay! \o/
8
2
Add a comment...