Skip to content

collectors MemcachedCollector

adrianmoisey edited this page Sep 27, 2012 · 19 revisions

MemcachedCollector

Collect memcached stats

Dependencies

  • subprocess

Example Configuration

diamond.conf

    [[MemcachedCollector]]
    enabled = True

    [[[hosts]]]

    [[[[app-1]]]]
    host = localhost
    port = 11211

Repeat the app-1 block as many times as needed for different host/port combos

Options

  • Generic Options
  • hosts: Complex set of hosts and ports to collect
  • enabled: Enable collecting these metrics
  • publish: Which rows of 'status' you would like to publish. Telnet host port' and type stats and hit enter to see the list of possibilities. Leave unset to publish all.
  • byte_unit: Default numeric output(s)

Example Output

servers.hostname.memcached.localhost.accepting_conns 1.0
servers.hostname.memcached.localhost.auth_cmds 0.0
servers.hostname.memcached.localhost.auth_errors 0.0
servers.hostname.memcached.localhost.bytes 0.0
servers.hostname.memcached.localhost.bytes_read 7.0
servers.hostname.memcached.localhost.bytes_written 0.0
servers.hostname.memcached.localhost.cas_badval 0.0
servers.hostname.memcached.localhost.cas_hits 0.0
servers.hostname.memcached.localhost.cas_misses 0.0
servers.hostname.memcached.localhost.cmd_flush 0.0
servers.hostname.memcached.localhost.cmd_get 0.0
servers.hostname.memcached.localhost.cmd_set 0.0
servers.hostname.memcached.localhost.cmd_touch 0.0
servers.hostname.memcached.localhost.conn_yields 0.0
servers.hostname.memcached.localhost.connection_structures 11.0
servers.hostname.memcached.localhost.curr_connections 10.0
servers.hostname.memcached.localhost.curr_items 0.0
servers.hostname.memcached.localhost.decr_hits 0.0
servers.hostname.memcached.localhost.decr_misses 0.0
servers.hostname.memcached.localhost.delete_hits 0.0
servers.hostname.memcached.localhost.delete_misses 0.0
servers.hostname.memcached.localhost.evicted_unfetched 0.0
servers.hostname.memcached.localhost.evictions 0.0
servers.hostname.memcached.localhost.expired_unfetched 0.0
servers.hostname.memcached.localhost.get_hits 0.0
servers.hostname.memcached.localhost.get_misses 0.0
servers.hostname.memcached.localhost.hash_bytes 524288.0
servers.hostname.memcached.localhost.hash_is_expanding 0.0
servers.hostname.memcached.localhost.hash_power_level 16.0
servers.hostname.memcached.localhost.incr_hits 0.0
servers.hostname.memcached.localhost.incr_misses 0.0
servers.hostname.memcached.localhost.limit_maxbytes 67108864.0
servers.hostname.memcached.localhost.listen_disabled_num 0.0
servers.hostname.memcached.localhost.reclaimed 0.0
servers.hostname.memcached.localhost.reserved_fds 20.0
servers.hostname.memcached.localhost.rusage_system 0.195071
servers.hostname.memcached.localhost.rusage_user 0.231516
servers.hostname.memcached.localhost.threads 4.0
servers.hostname.memcached.localhost.total_connections 11.0
servers.hostname.memcached.localhost.total_items 0.0
servers.hostname.memcached.localhost.touch_hits 0.0
servers.hostname.memcached.localhost.touch_misses 0.0
servers.hostname.memcached.localhost.uptime 25763.0
Clone this wiki locally