Skip to content

Commit

Permalink
Bug fix for rabbitmq.py metrics.
Browse files Browse the repository at this point in the history
Grumble grumble ganglia pyconf does not seem to support arrays
as values.
  • Loading branch information
Michael Spiegel committed Apr 27, 2015
1 parent e8ba506 commit 4821f60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rabbit/python_modules/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# last_update[stat_type] = None

### CONFIGURATION SECTION ###
STATS = ['nodes', 'queues']
STATS = ['nodes', 'queues', 'overview']

# QUEUE METRICS #
keyToPath['rmq_messages_ready'] = "%s{0}messages_ready".format(JSON_PATH_SEPARATOR)
Expand Down Expand Up @@ -297,6 +297,8 @@ def metric_init(params):
host = params['host']
port = params['port']
STATS = params['stats']
if type(STATS) is str:
STATS = STATS.split(',')

zero_rates_when_idle = str2bool(params['zero_rates_when_idle'])

Expand Down

0 comments on commit 4821f60

Please sign in to comment.