What problem does it solve?
This Skill helps you correctly instrument your code with StatsD metrics, ensuring accurate data collection and meaningful analysis by guiding you on metric type selection, naming conventions, and best practices for sampling and tagging.
Core Features & Use Cases
- Metric Type Selection: Guides you to choose the right StatsD metric type (counter, gauge, timer, histogram, set, distribution) for your data.
- Consistent Naming: Enforces dot-delimited hierarchy, lowercase, and unit inclusion for clear and navigable metric names.
- Tagging Strategy: Advises on using DogStatsD tags for dimensions and managing cardinality.
- Use Case: When adding metrics to track API request latency, this Skill ensures you use a timer or histogram, name it consistently (e.g.,
myapp.api.request.duration.ms), and apply appropriate tags (e.g., method:GET,status:200).
Quick Start
Use the statsd skill to instrument a new counter metric named 'myapp.api.request.count'.