opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

StatsD metric exporter

Open pauldraper opened this issue 5 years ago • 11 comments

Is your feature request related to a problem? Please describe.

I want to export metrics via StatsD, a common protocol used for many backends including Graphite.

Describe the solution you'd like

StatsD exporter.

Describe alternatives you've considered

Additional context

pauldraper avatar Aug 27 '20 23:08 pauldraper

https://github.com/open-telemetry/opentelemetry-specification/issues/374 should be of interest:

The reason we can't do this is that statsd (and dogstatsd) do not have a formal specification.

We will not pursue a statsd implementation until there is a specification to follow. Let's revisit this discussion when there is a specification to follow.

naseemkullah avatar Sep 01 '20 02:09 naseemkullah

It's still true that there's no statsd spec, although at least one document in the OTel org describes it now: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/master/receiver/statsdreceiver/README.md

Most systems that support statsd also support other formats, which is part of the reason that we haven't included statsd in the OTel specification.

That said, it's a very useful protocol that can be implemented with few dependencies and people like it for that reason. I am supportive of including statsd exporters, e.g., https://github.com/open-telemetry/opentelemetry-go-contrib/tree/master/exporters/metric/dogstatsd

jmacd avatar Sep 01 '20 15:09 jmacd

I think we should add it to the contrib repo. It can be upgraded to main repo when the spec includes it.

dyladan avatar Sep 01 '20 15:09 dyladan

And FYI, there is already a mature Node.js StatsD client (node-statsd).

pauldraper avatar Sep 03 '20 15:09 pauldraper

And FYI, there is already a mature Node.js StatsD client (node-statsd).

FWIW https://github.com/brightcove/hot-shots is also a good one

naseemkullah avatar Sep 03 '20 17:09 naseemkullah

Any updates on this issue?

bharathiram avatar Feb 18 '22 01:02 bharathiram

The metrics SDK is under active development. We will revisit this after https://github.com/open-telemetry/opentelemetry-js/issues/2574 is settled.

legendecas avatar Feb 18 '22 08:02 legendecas

Any updates? Looks like all of that closed on February 1st 2023.

bravely avatar Feb 24 '25 21:02 bravely

@bravely i'm working on the statsd exporter for c++ version i could draft another PR to support it in the javascript

zurex avatar Apr 19 '25 10:04 zurex

Hi @legendecas , could i pick this work item since nobody working on it now?

zurex avatar Apr 21 '25 08:04 zurex

@zurex please feel free to work on it!

legendecas avatar Apr 23 '25 14:04 legendecas