opened
bryanmikaelian
username_0
This PR adds support for measurements with tags in Librato. By default, measurements will be submitted to Librato's new API that supports tagging. We are also two config options:
- `tags` is a config option that lets you specify global tags for all measurements submitted to Librato. The `sourceName` regex will continue to function but will now be submitted for all measurements as a global tag named `source`. By default, this value is `{}`.
- `writeToLegacy` is a config option that will let you write to the legacy Librato API endpoint. This is designed to help users transition to Librato's new API and can be switched off once they are ready. By default, this value is `true`.

Librato will be adding official statsd clients, over time, to support tagging. However, it is possible to submit a stat in its "raw" format using the following syntax for its name:

`metric.name:value#tag1=value,tag2=value`

In the above example, 'tag1' and 'tag2' will be parsed out and submitted to Librato with the respective values for the given stat.

cc @username_1
Support for tagged measurements
issue
created
jderrett
username_1
Need to remove `sum_squares` from the payload, since it was removed from the API
comment
created
jderrett
username_1
Oops, also need to remove SOS logic:
https://github.com/librato/statsd-librato-backend/blob/038c285f2aa9ba18dd8f61c5559360c54416e4e4/lib/librato.js#L217
comment