# 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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://omalab.gitbook.io/guide/engineering-wiki/monitoring-and-alerting/tracking-your-results-with-statsd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
