docker-collectd-write-graphite
docker-collectd-write-graphite copied to clipboard
unable to get collectd image to write to graphite
I am not sure this is the right place to ask for help with images. if not can you please, tell me where to do so?
hi, i am trying to get your collectd image working on a mac. i have got a shell into the image and used envtpl to generate a collectd.conf in /etc/collectd/collectd.conf
root@a4facd119feb:/etc/collectd# cat /etc/collectd/collectd.conf
Hostname "rag.mac"
FQDNLookup false
Interval 10
Timeout 2
ReadThreads 5
LoadPlugin cpu
#LoadPlugin df
LoadPlugin load
LoadPlugin memory
LoadPlugin write_graphite
<Plugin df>
Device "hostfs"
MountPoint "/.dockerinit"
IgnoreSelected false
ReportByDevice false
ReportReserved true
ReportInodes true
</Plugin>
<Plugin "write_graphite">
<Carbon>
Host "192.168.59.103"
Port "2003"
EscapeCharacter "_"
SeparateInstances true
StoreRates true
AlwaysAppendDS false
</Carbon>
</Plugin>
i launched collectd by
collectd -f
but the collectd process seems to be sleeping and i cannot see any udp packets using tcpdump
root@a4facd119feb:/etc/collectd# strace -p 6559
Process 6559 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>) = 0
nanosleep({9, 996983650}, 0x7fff11cfb7e0) = 0
nanosleep({9, 997466121}, 0x7fff11cfb7e0) = 0
nanosleep({9, 998238557}, 0x7fff11cfb7e0) = 0
nanosleep({9, 998297530}, 0x7fff11cfb7e0) = 0
nanosleep({9, 998228186}, 0x7fff11cfb7e0) = 0
futex(0x6236e0, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x6236e0, FUTEX_WAKE_PRIVATE, 1) = 0
nanosleep({9, 997306219}, 0x7fff11cfb7e0) = 0
nanosleep({9, 999177094}, 0x7fff11cfb7e0) = 0
nanosleep({9, 998449753}, 0x7fff11cfb7e0) = 0
nanosleep({9, 997590564}, 0x7fff11cfb7e0) = 0
nanosleep({9, 994036467}, 0x7fff11cfb7e0) = 0
nanosleep({9, 998215277}, 0x7fff11cfb7e0) = 0
also, i was trying to make this image work with another graphite image, 'hopsoft/graphite-statsd' and graphite listens on 2003/tcp so I was trying to modify collectd.conf to specify Protocol as per https://collectd.org/wiki/index.php/Plugin:Write_Graphite but it does not work as collectd complains Protocol is not a valid configuration.
write_graphite plugin: Invalid configuration option: Protocol