Tracking your results with StatsD
TL;DR - Oma::Stats gets mixed into a class.
Once you do, you can call stats_event, and other methods and it will send StatsD events.
The namespace of these calls will be oma(oma-processor/oma-models).production.class.name
You can all Oma::Stats.stats_event and it will NOT be prefixed by the class name. You use these for general counters across classes.
Use Graphite to plot it, and make an administrative panel for it.
Best practices on naming your statsd event: Try to name with "namespace.some_specific_identifier.item_tracked". When you namespace things 5 or 6 "dots" deep, you can't easily build a chart that tracks all your items in one chart (which is super helpful for troubleshooting).
Last updated