collectd.git
12 years agowrite_graphite plugin: Improve Hostname / Port handling.
Florian Forster [Thu, 2 Feb 2012 16:39:21 +0000 (17:39 +0100)]
write_graphite plugin: Improve Hostname / Port handling.

Use getaddrinfo(3) for hostname lookup -- this also adds IPv6 compatibility.
Switch the internal names to node / service, to follow the terminology used by
getaddrinfo(3). Use cf_util_get_string() rather than implementing our own.
Allow service names in addition to port numbers.

12 years agoFix copy/paste typo in config option handler
Scott Sanders [Mon, 26 Dec 2011 16:34:52 +0000 (11:34 -0500)]
Fix copy/paste typo in config option handler

Spotted by Pavel Korovin. Thanks!

13 years agoAdd patch from jimmyattime (issue #8)
Scott Sanders [Fri, 18 Nov 2011 16:11:35 +0000 (11:11 -0500)]
Add patch from jimmyattime (issue #8)

This is certainly no worse than the previous usage of
pthread_mutex_lock, and will prevent the plugin from blocking. I'd like
to add better handling of failed locks in future commits.

13 years agoPrefix is no longer a required directive
Scott Sanders [Sun, 9 Oct 2011 23:08:27 +0000 (19:08 -0400)]
Prefix is no longer a required directive

While useful, the user should not be required to provide a prefix.
Having the hosts as the top level containers may make sense in some
environments. The current format is "${prefix}${hostname}${postfix}" so
be careful to add dots where needed.

Also updated docs to reflect this change.

13 years agoAllow the user to append a string to the hostname
Scott Sanders [Sun, 9 Oct 2011 23:02:06 +0000 (19:02 -0400)]
Allow the user to append a string to the hostname

The user should be able to append a string to the hostname to provide
better organization if they wish. The directive used to set this option
is Postfix.

13 years agoMake the dot substitution char configurable
Scott Sanders [Sun, 9 Oct 2011 22:32:07 +0000 (18:32 -0400)]
Make the dot substitution char configurable

Set the character used as the substitute in host and datasource names in
the collectd configuration block. The directive used to set this option
is DotCharactor and its default is '_' (underscore).

13 years agoMangle dots on the type instance, not ds name
Scott Sanders [Mon, 3 Oct 2011 00:18:41 +0000 (20:18 -0400)]
Mangle dots on the type instance, not ds name

13 years agoMust be getting tired...
Scott Sanders [Sun, 2 Oct 2011 23:56:24 +0000 (19:56 -0400)]
Must be getting tired...

13 years agoOops. Use the new string and free it when done
Scott Sanders [Sun, 2 Oct 2011 23:41:06 +0000 (19:41 -0400)]
Oops. Use the new string and free it when done

13 years agoMerge branch 'master' of github.com:jssjr/collectd-write_graphite
Scott Sanders [Sun, 2 Oct 2011 23:23:24 +0000 (19:23 -0400)]
Merge branch 'master' of github.com:jssjr/collectd-write_graphite

13 years agoConverts . to _ in datasource names
Scott Sanders [Sun, 2 Oct 2011 23:18:06 +0000 (19:18 -0400)]
Converts . to _ in datasource names

This came up during testing with the ntp plugin. The ds_name was being
sent with an ip in the string. This will prevent the result from nesting
in the carbon store.

13 years agoDon't require a named backend
Scott Sanders [Sun, 2 Oct 2011 20:28:32 +0000 (16:28 -0400)]
Don't require a named backend

Naming a backend adds no value to the configuration and only serves to
complicate things. Multiple unamed carbon backends are still allowed.
Documentation updated to reflect the change.

13 years agoModify whitepsace
Scott Sanders [Sat, 1 Oct 2011 23:12:01 +0000 (19:12 -0400)]
Modify whitepsace

13 years agoOptimize strlen() calls out
Scott Sanders [Sat, 1 Oct 2011 22:56:29 +0000 (18:56 -0400)]
Optimize strlen() calls out

13 years agoMove send buffer size to the top of the file
Scott Sanders [Sat, 1 Oct 2011 22:46:06 +0000 (18:46 -0400)]
Move send buffer size to the top of the file

13 years agoRemove fold markers
Scott Sanders [Sat, 1 Oct 2011 22:42:54 +0000 (18:42 -0400)]
Remove fold markers

13 years agomove sources
Scott Sanders [Wed, 10 Aug 2011 00:17:46 +0000 (20:17 -0400)]
move sources

13 years agofree name appropriately
Scott Sanders [Mon, 8 Aug 2011 15:00:11 +0000 (11:00 -0400)]
free name appropriately

13 years agoadd config example and move host definitation out of <Carbon> attribute
Scott Sanders [Mon, 8 Aug 2011 14:55:23 +0000 (10:55 -0400)]
add config example and move host definitation out of <Carbon> attribute

13 years agoinitial sync from private repo
Scott Sanders [Mon, 8 Aug 2011 14:47:10 +0000 (10:47 -0400)]
initial sync from private repo