Giter Site home page Giter Site logo

A command-line client? about statsd HOT 6 CLOSED

statsd avatar statsd commented on May 18, 2024
A command-line client?

from statsd.

Comments (6)

msiebuhr avatar msiebuhr commented on May 18, 2024 1

For future reference, a bash-client has been added per 5095868.

from statsd.

Dieterbe avatar Dieterbe commented on May 18, 2024

seems like a good idea. to avoid introducing a dependency on any particular scripting language it should probably be written in C or pure bash (bash can do udp/tcp natively)

from statsd.

msiebuhr avatar msiebuhr commented on May 18, 2024

Yeah, my though exactly. Didn't know bash did native networking ;)

from statsd.

shaftoe avatar shaftoe commented on May 18, 2024

I agree this could be quite handy in many cases.
With bash, you can just do something like:

open the udp socket:
exec 3<> /dev/udp/statsd_ip_address/8125

send data:
echo "whatever|whatever" >&3

close udp socket:
exec 3<&-
exec 3>&-

from statsd.

mrtazz avatar mrtazz commented on May 18, 2024

There are examples for a couple of languages in the examples directory. I think pretty much all of them can be used (maybe with slight changes) to send metrics from the command line. And there are also a lot of client libraries out there. So given the simplicity of the StatsD protocol, I don't think there is a need for an official cli tool. But if anyone is up for writing a client in shell script for example, we're happy to include it in the examples as long as it is reasonably small.

from statsd.

pataquets avatar pataquets commented on May 18, 2024

https://github.com/jondot/statsd-cli

from statsd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.