librato / statsd-librato-backend

A StatsD backend that sends metrics to Librato Metrics
MIT License
76 stars 34 forks source link

Feature/per-metric source name #8

Closed mjr5749 closed 11 years ago

mjr5749 commented 12 years ago

This is not a general purpose fix for Issue #2 - extract source from metric name, but does provide one approach to provide this feature.

Metric names can have a source embedded using this format:

source_name/metric_name

This patch will parse out the source name and pass it along to Librato Metrics with each metric that it is specified for.

This requires an additional patch to statsd to allow the '/' character to pass through to the librato backend during a flush operation. I have a separate repo & pull request for that change.

mjr5749 commented 12 years ago

Here is the corresponding patch required to statsd to use this feature in the librato-statsd-backend: https://github.com/etsy/statsd/pull/154

mheffner commented 11 years ago

Merged PR #18