Using Etsy's StatsD in a Windows Environment

后端 未结 7 1324
无人共我
无人共我 2020-12-23 15:05

What will I need to use Etsy\'s Statsd in a Windows Environment? My intentions are to create a .net client to use Statsd.

相关标签:
7条回答
  • 2020-12-23 15:15

    We've re-built Graphite/StatsD in pure .NET. It is currently being used in production environment, processing around 600M datapoints daily.

    Statsify:

    enter image description here

    0 讨论(0)
  • 2020-12-23 15:17

    There is quite a few open-source StatsD client implementations available in different Language including C#.NET. Etsy provide one on their github examples, also check out AppFirst version of statsd_clients.

    0 讨论(0)
  • 2020-12-23 15:27

    Your best bet is to have a Linux server with statsd and Graphite installed. You would then just need to write some C# code to make the UDP call to get the metric into the system.

    [UPDATE (6/23/2014): I came across a statsd/Graphite clone called statsd.net that looks promising but largely lacking on the Graphite side of the equation. I still think the best bet is to use the actual statsd/Graphite projects since any clone is necessary playing catch-up.]

    0 讨论(0)
  • 2020-12-23 15:27

    TL;DR:

    • statsd.net is a scalable statsd clone with lots of cool extras, and designed for windows-centric environments. First production release is on the 29th of May, 2013
    • statsd-csharp-client is a lightweight statsd and statsd.net client, available for .net 3.5, 4.0 and 4.5 via nuget.

    Full Disclosure: I'm the author of these two projects and I wrote them because I couldn't take etsy's statsd service to production - my organisation isn't ready to deploy and support nodejs-based services.

    I had the same problem in my organisation - we're a windows-centric environment that wants to collect stats from all over the world into a single graphite repository. I had initially thought of using etsy's statsd but my company is not yet ready to roll with nodejs services in production. Along the way I found that having my own aggregation service meant I can do lots of interesting things like add memcached support for scalability, add new aggregators and so on.

    The service is usable in console mode right now, and will be ready for production use from the 29th of May 2013 onwards.

    0 讨论(0)
  • 2020-12-23 15:27

    Current statsd and nodejs versions allow you to run statsd on Windows without amendments. statsd package.json file already contains scripts to install and uninstall it as Windows service.

    The installation procedure would be:

    • Install nodejs for Windows
    • Create a directory like C:\StatsD
    • Open a console window and do cd \StatsD
    • Then do npm install https://github.com/etsy/statsd.git
    • In node_modules\statsd directory create your own config.json
    • In the console window do cd node_modules\statsd and npm run-script install-windows-service

    However, Graphite only runs on Linux.

    0 讨论(0)
  • 2020-12-23 15:31

    You need a statsd server to connect to.
    You also need a client library to connect to it, e.g. this one and the nuget package of it.

    0 讨论(0)
提交回复
热议问题