On Monday, August 29, 2016 at 4:35:20 PM UTC+3, [email protected] wrote:
> Yes, you are right as far as the hostname goes. With the DataDog API you can 
> attach other tags to the host as well (to be able to easily group hosts by 
> tags, not just metrics), but after looking at the source code it seems like 
> the plugin never communicates with that API endpoint. At this point it 
> probably makes more sense for me to look into either making a pull request or 
> opening a github issue about it instead, since it seems like at least some 
> other agents work like this it might be useful.
> 
> Thanks!
> 
> // Daniel
> 
> On Monday, 29 August 2016 13:24:44 UTC+2, [email protected]  wrote:
> > Hi Daniel,
> > 
> > The datadog output plugin should automatically set any tag called "host" as 
> > the datadog host tag.
> > 
> > By default, telegraf sets the "host" tag using the hosts OS hostname. 
> > 
> > you can read more about setting your own tags here: 
> > https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md
> > 
> > On Friday, August 26, 2016 at 4:03:59 PM UTC+1, [email protected] wrote:
> > > Hi!
> > > 
> > > I'm trying to use Telegraf to output data to DataDog. To be able easily 
> > > narrow down hosts (I have quite a few) in their UI, it'd be great if 
> > > there was a way to set datadog host tags in the datadog config. Have I 
> > > missed some other way to do this?
> > > 
> > > Regards,
> > > Daniel

Hi Daniel,

The following sample metric in Influx Line protocol:
"sample,host=ubuntu01,role=webserver cpu=95"


Will be sent out from the Datadog output in the following format:

{"series":[{"metric":"sample.cpu","points":[[1.472484617e+09,95]],"host":"ubuntu01","tags":["host:ubuntu01","role:webserver"]}]}

Doesn't this format cover what you are looking for?

-- 
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/cd404f83-a2fd-4b06-a6bf-289dce067111%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to