On Friday, August 19, 2016 at 5:30:28 PM UTC+3, Harlow Ward wrote:
> Looks like I took a slightly wrong approach here... I am able to get StatsD 
> client to produce metrics by following 
> https://influxdata.com/blog/getting-started-with-sending-statsd-metrics-to-telegraf-influxdb/.
> 
> 
> 
> # Statsd Server
> [[inputs.statsd]]  
> 
> 
> However, I'm unable to use an Influx Client to push metrics to Telegraf. 
> Seems odd that Telegraf wouldn't have an Input type Influx data (measurement, 
> tags, fields).
> 
> 
> 
> Might have to sick with using BatchPoints from Golang library for time being. 
> Anything i'm missing here? 
> On Thursday, August 18, 2016 at 5:40:33 PM UTC-7, Harlow Ward wrote:
> Hello all. New Influxdb user here. Excited to start using in our Prod 
> environment.
> 
> 
> I'm getting set up with Telegraf for the first time and wondering if I'm able 
> to leverage the Golang influx client to push metrics directly to Telegraf and 
> then have those metrics batched and sent to InfluxCloud.
> 
> 
> We're also running a DataDog collector so I'll need to override the Port to a 
> unique value. 
> 
> 
> The docs mention only 1 field avail 
> (https://github.com/influxdata/telegraf/tree/master/plugins/inputs/statsd#influx-statsd).
>  Anything else I should watch out for? 
> 
> 
> 
> 
> Thanks in advance,
> Harlow

Hi Harlow,

Telegraf does not officially support an HTTP listener to ingest data from 
Influx line protocol HTTP requests, yet.
You are able to submit data points in Line protocol format over raw TCP or UDP 
using the inputs.tcp_listener and inputs.udp_listener plugins.

However, there is a PR from the community member "bagelswith", who has 
implemented an http listener service: 
https://github.com/influxdata/telegraf/pull/1407

The PR only supports clear HTTP communication (no SSL yet). I have personally 
tested the plugin and it does work, returning 204 response codes upon success 
as InfluxDB does. There are still a few rough edges that we want to examine 
before merging the PR in our Telegraf repository.

If you are willing to build Telegraf off of that user's repo, you can find the 
version that includes the inputs.http_listener plugin here: 
https://github.com/bagelswitch/telegraf
You just need to clone the repo on a server with Go 1.6 installed and run 
"make" to build Telegraf. The plugin's configuration sample can be found here: 
https://github.com/bagelswitch/telegraf/tree/master/plugins/inputs/http_listener

Thanks,
Kostas

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/88c2648e-39e6-4afd-941d-43ee18884959%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to