lukevenediger / statsd.net

A high-performance stats collection service that feeds into Graphite and aimed at small- to large-scale windows environments.
MIT License
122 stars 25 forks source link

Namespace node replacement - pluggable filters #9

Open lukevenediger opened 11 years ago

lukevenediger commented 11 years ago

Namespaces can contain placeholders that will be replaced with an actual value, using a pluggable filter.

For example, foo.bar.{geo(city,45.2314,98.23145)}.baz - will invoke the geo plugin to extract the city name based on a latitude and longitude reading. Other plugin examples could be:

The plugin must replace a whole node, and will return one or more nodes.

The format for a plugin is: { plugin_name ( arg0, arg1 .. argN ) }

A plugin with zero arguments does not require parentheses: { plugin_name }