Skip to content

Instantly share code, notes, and snippets.

@lusis
Created September 26, 2013 15:44
Show Gist options
  • Select an option

  • Save lusis/6716037 to your computer and use it in GitHub Desktop.

Select an option

Save lusis/6716037 to your computer and use it in GitHub Desktop.

Revisions

  1. 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>