Skip to content

neutmute/NStatsD.Client

 
 

Repository files navigation

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.

About

A .NET 4.0 client for Etsy's StatsD server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%