StatsD::DefaultInstrumentation
A set of instrumentation for Rails and common libraries.
Configuration
After loading your libraries run StatsD::DefaultInstrumentation.detect!
. Rails apps should do this in an initializer.
The following options are supported and are configured with StatsD::DefaultInstrumentation.option = value
- prefix: Sets the stat name prefix string. By default this is "default_instrumentation" but should be configured to something like "environment.application".
Instrumentation
ActionController
- Count of controller actions grouped by response code. Example: controllers.admin/users.create.200
MemCache
Supported clients: memcache-client, memcached
- Count of each operation. Example: memcache.set
- Count of hits/misses for get operations as memcache.hit and memcache.miss
Redis
Supported clients: redis-rb
- Count and timing of each operation. Example: redis.get.count, redis.get.time