Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StatsD output #348

Open
gunnaraasen opened this issue Nov 5, 2015 · 14 comments
Open

StatsD output #348

gunnaraasen opened this issue Nov 5, 2015 · 14 comments
Labels
area/statsd feature request Requests for new plugin and for new features to existing plugins

Comments

@gunnaraasen
Copy link
Member

Following up with the corollary to #39, a StatsD output could be useful for sending metrics produced by Telegraf to a StatsD consumer.

@anarcher
Copy link

👍

1 similar comment
@pcheliniy
Copy link

👍

@sparrc
Copy link
Contributor

sparrc commented Nov 16, 2015

Does anyone have a suggestion on how this would work? How could a Telegraf metric be converted into a Gauge/Counter/Timer/Set?

@sparrc
Copy link
Contributor

sparrc commented Jan 15, 2016

closing this as won't implement, there isn't a clear mapping to statsd metrics from telegraf, and there is already a PR up for graphite output #494

@sparrc sparrc closed this as completed Jan 15, 2016
@amoghe
Copy link
Contributor

amoghe commented Feb 19, 2018

Pardon my naivete, but the fact that a datadog output plugin exists indicates to me that the mapping to statsd (or datadogs variant of the statsd protocol) should be possible. What am I missing?

@amoghe
Copy link
Contributor

amoghe commented Feb 19, 2018

Also, it looks like support for Counter and Gauge types was added in telegraf.ValueType. Maybe we could just support those two?

@amoghe
Copy link
Contributor

amoghe commented Feb 19, 2018

After some experimenting, it looks like reusing the socket_writer (udp) with a custom serializer seems to suffice. So it seems like we don't necessarily need a new output plugin, but a serializer that can by used by a socket_writer.

@sparrc , would something like this be acceptable? Is this even on the right track?

@stevenscg
Copy link

@amoghe Did you end up building something for this? I've been looking for a similar solution. I like telegraf's filtering capabilities, so wanted to use it to receive statsd locally and forward the filtered metrics on to another statsd-compatible agent (or multiple agents for that matter).

@amoghe
Copy link
Contributor

amoghe commented Apr 15, 2018

@stevenscg not yet. I'll try to put up something this week.

@stevenscg
Copy link

@amoghe Sounds good. I won't be much help with the coding, but happy to test it out.

@OldhamMade
Copy link

Did anything more happen with this? I too am interested in the results. I have a statsd-compatible upstream service and would like to aggregate custom Telegraf stats there, without having to jury-rig something with statsd itself.

@danielnelson
Copy link
Contributor

I can reopen this issue, however I have some concerns about how well this will work in practice. Telegraf doesn't currently have type information for the vast majority of metrics, the current type info does little more than support prometheus input to prometheus output roundtripping. Unless we add richer type information it will be difficult to properly set the statsd types.

@danielnelson danielnelson reopened this Apr 15, 2020
@danielnelson danielnelson added the feature request Requests for new plugin and for new features to existing plugins label Apr 15, 2020
@imalearner96
Copy link

I am working on sending telegraf metrics to dogstatsD agent, what plugin can I use for this

@elee
Copy link

elee commented Dec 6, 2022

Also interested in this use case as I am trying to "front" a plain protocol speaking service (collectd) with Telegraf accepting dogstatsd as input and would like to selectively forward some metrics stripped of tags to collectd while sending other metrics ingested elsewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/statsd feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

No branches or pull requests