A .NET 4.0 client for Etsy's StatsD server.
C#
Switch branches/tags
Nothing to show
Pull request Compare This branch is 12 commits ahead, 36 commits behind robbihun:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
NStatsD.Client.Demo
NStatsD.Tests
NStatsD
SolutionItems
.gitignore
LICENSE
NStatsD.sln
NStatsD.vsmdi
README.md
TraceAndTestImpact.testsettings

README.md

NStatsDClient

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.

Requirements

.NET 4.0

Installation

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>

Usage

            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);

License

NStatsDClient is licensed under the MIT license.