Skip to content

Instantly share code, notes, and snippets.

@davewongillies
Forked from lusis/collectd-rabbitmq.xml
Last active March 12, 2016 09:50
Show Gist options
  • Save davewongillies/9b28252bc3db27e51ce2 to your computer and use it in GitHub Desktop.
Save davewongillies/9b28252bc3db27e51ce2 to your computer and use it in GitHub Desktop.

Revisions

  1. David Gillies revised this gist Mar 12, 2016. 1 changed file with 12 additions and 12 deletions.
    24 changes: 12 additions & 12 deletions collectd-rabbitmq.xml
    Original file line number Diff line number Diff line change
    @@ -15,31 +15,31 @@
    Type "counter"
    </Key>
    <Key "message_stats/publish_details/rate">
    Type "guage"
    Type "gauge"
    </Key>
    <Key "message_stats/deliver_get_details/rate">
    Type "guage"
    Type "gauge"
    </Key>
    <Key "message_stats/deliver_no_ack_details/rate">
    Type "guage"
    Type "gauge"
    </Key>
    <Key "queue_totals/messages">
    Type "guage"
    Type "gauge"
    </Key>
    <Key "queue_totals/messages_ready">
    Type "guage"
    Type "gauge"
    </Key>
    <Key "queue_totals/messages_unacknowledged">
    Type "guage"
    Type "gauge"
    </Key>
    <Key "queue_totals/messages_details/rate">
    Type "guage"
    Type "gauge"
    </Key>
    <Key "queue_totals/messages_ready_details/rate">
    Type "guage"
    Type "gauge"
    </Key>
    <Key "queue_totals/messages_unacknowledged_details/rate">
    Type "guage"
    Type "gauge"
    </Key>
    </URL>
    <!-- the mq-a@mq-a part maps to the erlang cookie vals -->
    @@ -81,15 +81,15 @@
    Type "bytes"
    </Key>
    <Key "fd_used">
    Type "guage"
    Type "gauge"
    </Key>
    <Key "fd_total">
    Type "counter"
    </Key>
    <Key "sockets_used">
    Type "guage"
    Type "gauge"
    </Key>
    <Key "sockets_total">
    Type "counter"
    </Key>
    </URL>
    </URL>
  2. @lusis lusis created this gist Sep 26, 2013.
    95 changes: 95 additions & 0 deletions collectd-rabbitmq.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,95 @@
    <!-- note that this requires the rabbitmq management plugin -->
    <!-- also requires collectd 5.1 with curl_json plugin support -->
    <Plugin curl_json>
    <URL "http://localhost:55672/api/overview">
    Instance "rabbitmq_overview"
    User "guest"
    Password "guest"
    <Key "message_stats/publish">
    Type "counter"
    </Key>
    <Key "message_stats/deliver_get">
    Type "counter"
    </Key>
    <Key "message_stats/deliver_no_ack">
    Type "counter"
    </Key>
    <Key "message_stats/publish_details/rate">
    Type "guage"
    </Key>
    <Key "message_stats/deliver_get_details/rate">
    Type "guage"
    </Key>
    <Key "message_stats/deliver_no_ack_details/rate">
    Type "guage"
    </Key>
    <Key "queue_totals/messages">
    Type "guage"
    </Key>
    <Key "queue_totals/messages_ready">
    Type "guage"
    </Key>
    <Key "queue_totals/messages_unacknowledged">
    Type "guage"
    </Key>
    <Key "queue_totals/messages_details/rate">
    Type "guage"
    </Key>
    <Key "queue_totals/messages_ready_details/rate">
    Type "guage"
    </Key>
    <Key "queue_totals/messages_unacknowledged_details/rate">
    Type "guage"
    </Key>
    </URL>
    <!-- the mq-a@mq-a part maps to the erlang cookie vals -->
    <URL "http://localhost:55672/api/nodes/mq-a@mq-a">
    Instance "rabbitmq_node_stats"
    User "guest"
    Password "guest"
    <Key "mem_ets">
    Type "bytes"
    </Key>
    <Key "mem_binary">
    Type "bytes"
    </Key>
    <Key "mem_proc">
    Type "bytes"
    </Key>
    <Key "mem_proc_used">
    Type "bytes"
    </Key>
    <Key "mem_atom">
    Type "bytes"
    </Key>
    <Key "mem_atom_used">
    Type "bytes"
    </Key>
    <Key "mem_code">
    Type "bytes"
    </Key>
    <Key "mem_used">
    Type "bytes"
    </Key>
    <Key "mem_limit">
    Type "bytes"
    </Key>
    <Key "disk_free_limit">
    Type "bytes"
    </Key>
    <Key "disk_free">
    Type "bytes"
    </Key>
    <Key "fd_used">
    Type "guage"
    </Key>
    <Key "fd_total">
    Type "counter"
    </Key>
    <Key "sockets_used">
    Type "guage"
    </Key>
    <Key "sockets_total">
    Type "counter"
    </Key>
    </URL>