StatsD at Shopify - Shopify
Jul 28, 2011

Summary
This post introduces the `statsd-instrument` gem, a Ruby client for StatsD developed and used at Shopify. It details how StatsD is used for high-level overviews of custom data (e.g., cache hits/misses) and for proving assumptions about system performance. The post provides examples of using metaprogramming methods to inject instrumentation for parsing/rendering Liquid templates, updating Google Base products, and performing Webhook jobs. It also shows direct usage for incrementing storefront request counts and cache hit/miss metrics.
More from the Data Store Selection and Usage trail
- We replaced Redis with MySQL for inventory reservations—and it scaled (2026) - Shopify
- Mitigating Deadlocks in high concurrency environments - Shopify
- Safely Adding NOT NULL Columns to Your Database Tables - Shopify
- Double Entry Transition Tables: How We Track State Changes At Shopify - Shopify
- Shopify’s Unique Data Science Hierarchy Of Needs - Shopify