BrightcoveOS/Diamond — pull request #659 by MichaelDoyle (2014-07-01 15:58:15+00:00)
Title: Patch beanstalkd collector

'version', 'id', and 'hostname' are not statistics and can be ignored. Trying to parse these results in the following exception:

File "/usr/lib/pymodules/python2.7/diamond/collector.py", line 412, in _run
self.collect()
File "/usr/share/diamond/collectors/beanstalkd/beanstalkd.py", line 77, in collect
metric_type=self.get_metric_type(stat))
File "/usr/lib/pymodules/python2.7/diamond/collector.py", line 330, in publish
metric_type=metric_type)
File "/usr/lib/pymodules/python2.7/diamond/metric.py", line 52, in __init__
raise DiamondException("Invalid parameter: %s" % e)
DiamondException: Invalid parameter: invalid literal for float(): 5ea7e12f9fec41d9

See the beanstalkd protocol for a full list of outputs, and their description:
https://github.com/kr/beanstalkd/blob/master/doc/protocol.txt

- "version" is the version string of the server.
- "id" is a random id string for this server process, generated when each beanstalkd process starts.
- "hostname" the hostname of the machine as determined by uname.