A .NET 4.0 client for Etsy's StatsD server.
This client will let you fire stats at your StatsD server from a .NET application. This is a fork of Rob Bihun's client with some adjusted syntax to support dynamic buckets.
.NET 4.0
Reference the NStatsD.dll assembly in your project. Add the following to your config's configSections node.
<section name="statsD" type="NStatsD.StatsDConfigurationSection, NStatsD" />
Then add the following to your app config's configuration node.
<statsD>
<server host="localhost" port="8125" />
</statsD>
var timedStat = NStatsD.Client.With("test.timer").BeginTimer();
NStatsDClient.With("test.increment").Increment();
NStatsDClient.With("test.decrement").Decrement();
NStatsDClient.With("test", "gauge").Gauge(random.Next(0, 100));
NStatsDClient.WithoutPrefix("NStatsDDemo.NoPrefix.Gauge").Gauge(89);
NStatsDClient is licensed under the MIT license.