docker-collectd-plugin icon indicating copy to clipboard operation
docker-collectd-plugin copied to clipboard

Problems with dots "." in keys

Open kifj opened this issue 9 years ago • 0 comments

I'm using the RPM packages for graphite-api (v1.1.3) and python-whisper (0.9.15) and python-carbon (0.9.15) on Fedora 24, and I've encountered problems reading some stats gathered by the plugin.

The problems seems to be related with using "." in some keys, as in "localhost/docker-elasticsearch01/cpu.percpu.usage-cpu0". Graphite has some conventions about slashes and dots as folders, and mixing them does not seem to work in the versions I am using.

Replacing "." by "_" in all in metric names in dockerplugin.py fixes the problem

PUTVAL localhost/docker-elasticsearch01/blkio-io_wait_time_recursive-8-0 1476467891:26595:0:0:26595:26595 PUTVAL localhost/docker-elasticsearch01/cpu.percpu.usage-cpu0 1476467891:101767690236 PUTVAL localhost/docker-elasticsearch01/cpu.percpu.usage-cpu1 1476467891:111667544483 PUTVAL localhost/docker-elasticsearch01/cpu.percpu.usage-cpu2 1476467891:108575001324 PUTVAL localhost/docker-elasticsearch01/cpu.percpu.usage-cpu3 1476467891:106117845408 PUTVAL localhost/docker-elasticsearch01/cpu.throttling_data 1476467891:0:0:0 PUTVAL localhost/docker-elasticsearch01/cpu_usage 1476467891:428128081451:66940000000:359260000000:25199890000000 PUTVAL localhost/docker-elasticsearch01/cpu_percent 1476467891:6.76

kifj avatar Oct 14 '16 17:10 kifj