Skip to content

Commit

Permalink
Fix rabbitmq-throughput labeling.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuebric committed Jan 17, 2012
1 parent ec2526d commit 909d6de
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/rabbitmq-throughput
@@ -1,7 +1,4 @@
#!/usr/bin/env python
#
# requires the rabbitmq management plugin to be installed
#
from munin import MuninPlugin

import mechanize
Expand Down Expand Up @@ -30,7 +27,7 @@ class RabbitMQThroughputPlugin(MuninPlugin):
msg_warning = os.environ.get('msg_throughput_warn', 250)
msg_critical = os.environ.get('msg_throughput_crit', 300)

return [ (field, dict(
return [ (field.replace('details','rate'), dict(
label = field.replace('details','rate'),
info = '%s throughput (per sec)' % (field,),
type = "GAUGE",
Expand Down

0 comments on commit 909d6de

Please sign in to comment.