Skip to content

JulianRooze/NStatsD.Client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NStatsD.Client

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. Very useful for mixed technology systems that you would like to keep near real-time stats on.

Requirements

.NET 4.0 (Websocket support)

Installation

Nuget

Install-Package NStatsD.Client

Manually

Just include the Client.cs and the StatsDConfigurationSection.cs files in your project. Add the following to your config's configSections node.

<section name="statsD" type="NStatsD.StatsDConfigurationSection, NStatsD.Client" />

Then add the following to your app config's configuration node.

<statsD>
	<server host="localhost" port="8125" />
</statsD>

Usage

NStatsD.Client.Current.Increment("testing.increment");
NStatsD.Client.Current.Increment("testing.increment", 0.5); // Optional Sample Rate included on all methods
NStatsD.Client.Current.Decrement("testing.decrement");
NStatsD.Client.Current.Timing("testing.timing", 2345);
NStatsD.Client.Current.Gauge("testing.gauge", 45);

License

NStatsD.Client is licensed under the MIT license.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%