Skip to content

collectors MemcachedCollector

kormoc edited this page Mar 13, 2012 · 19 revisions

MemcachedCollector

Dependencies

  • None

Options

  • Generic Options
  • 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.
  • hosts - List of hosts to collect
    • id - The name of the host
      • host - Host to gather stats for
      • port - Telnet interface port

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

Example Output

All keys are prefixed with nodes.hostname by default

memcached.app-1.reclaimed 0 1331661257
memcached.app-1.expired_unfetched 0 1331661257
memcached.app-1.hash_is_expanding 0 1331661257
memcached.app-1.cas_hits 0 1331661257
memcached.app-1.uptime 137448 1331661257
memcached.app-1.touch_hits 0 1331661257
memcached.app-1.delete_misses 0 1331661257
memcached.app-1.listen_disabled_num 0 1331661257
memcached.app-1.cas_misses 0 1331661257
memcached.app-1.decr_hits 0 1331661257
memcached.app-1.cmd_touch 0 1331661257
memcached.app-1.incr_hits 0 1331661257
memcached.app-1.auth_cmds 0 1331661257
memcached.app-1.limit_maxbytes 67108864 1331661257
memcached.app-1.bytes_written 1026 1331661257
memcached.app-1.incr_misses 0 1331661257
memcached.app-1.accepting_conns 1 1331661257
memcached.app-1.rusage_system 1 1331661257
memcached.app-1.total_items 0 1331661257
memcached.app-1.cmd_get 0 1331661257
memcached.app-1.curr_connections 10 1331661257
memcached.app-1.touch_misses 0 1331661257
memcached.app-1.threads 4 1331661257
memcached.app-1.total_connections 12 1331661257
memcached.app-1.cmd_set 0 1331661257
memcached.app-1.curr_items 0 1331661257
memcached.app-1.conn_yields 0 1331661257
memcached.app-1.get_misses 0 1331661257
memcached.app-1.reserved_fds 20 1331661257
memcached.app-1.bytes_read 12 1331661257
memcached.app-1.hash_bytes 524288 1331661257
memcached.app-1.evicted_unfetched 0 1331661257
memcached.app-1.cas_badval 0 1331661257
memcached.app-1.cmd_flush 0 1331661257
memcached.app-1.evictions 0 1331661257
memcached.app-1.bytes 0 1331661257
memcached.app-1.connection_structures 11 1331661257
memcached.app-1.hash_power_level 16 1331661257
memcached.app-1.auth_errors 0 1331661257
memcached.app-1.rusage_user 1 1331661257
memcached.app-1.delete_hits 0 1331661257
memcached.app-1.decr_misses 0 1331661257
memcached.app-1.get_hits 0 1331661257
Clone this wiki locally