<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">------------------------------<wbr>------------------------------<wbr>----------<br><br>Message: 1<br>Date: Wed, 2 Nov 2016 15:15:14 +0000<br>From: "Batham, Shailendra" <<a href="mailto:sbatham@amgen.com">sbatham@amgen.com</a>><br>To: "CollectD Mailgroup (<a href="mailto:collectd@verplant.org">collectd@verplant.org</a>)"<br>        <<a href="mailto:collectd@verplant.org">collectd@verplant.org</a>><br>Subject: [collectd] CollectD<br>Message-ID:<br>        <<a href="mailto:BLUPR07MB3728026B215E0D77426DCCFB5A00@BLUPR07MB372.namprd07.prod.outlook.com">BLUPR07MB3728026B215E0D77426D<wbr>CCFB5A00@BLUPR07MB372.<wbr>namprd07.prod.outlook.com</a>><br><br>Content-Type: text/plain; charset="us-ascii"<br><br>Hello,<br><br>I am using collectd on linux, sending data to InfluxDB.<br><br>Is there any option for tagging collectd metrics to influxdb?<br><br>I want global tagging like team and sub team for each time series entry in Influx.<br><br>Any help is appreciated.<br><br>Thanks,<br>Shailendra<br><br><br>******************************<wbr>**********<br></blockquote></div><br></div><div class="gmail_extra">Hi Shailendra, if you check the archives, then you'll see that I asked a similar question - although in my case I wanted to tag output to Apache Kafka, (which then later goes to InfluxDB). Unfortunately, this isn't possible. :(</div><div class="gmail_extra"><br></div><div class="gmail_extra">However, in the course of that conversation the InfluxData guys were *very* helpful, and gave us a solution that I'll suggest might help you. Instead of sending your data direct to InfluxDB from CollectD, send it (as graphite format) to a port on your local machine. Then install Influx's Telegraf software (free!) and get IT to pick up from that port and forward to InfluxDB. Then you can add whatever tags you want at the Telegraf stage AND also add a conversion to influx format (which means slightly less load on your InfluxDB box).</div><div class="gmail_extra"><br></div><div class="gmail_extra">write_graphite.conf:</div><div class="gmail_extra"><div class="gmail_extra">LoadPlugin write_graphite</div><div class="gmail_extra"><Plugin write_graphite></div><div class="gmail_extra">  <Node "telegraf"></div><div class="gmail_extra">    Host     "localhost"</div><div class="gmail_extra">    Port     "8094"</div><div class="gmail_extra">    Protocol "tcp"</div><div class="gmail_extra">  </Node></div><div class="gmail_extra"></Plugin></div><div class="gmail_extra"><br></div><div class="gmail_extra">Sample telegraf.conf:</div><div class="gmail_extra"><div class="gmail_extra">[global_tags]</div><div class="gmail_extra">  component = "riak"</div><div class="gmail_extra">  environment = "qa1"</div><div class="gmail_extra">  support = "us-west"</div><div class="gmail_extra"><br></div><div class="gmail_extra">[agent]</div><div class="gmail_extra">  collection_jitter = "2s"</div><div class="gmail_extra">  debug = false</div><div class="gmail_extra">  flush_interval = "10s"</div><div class="gmail_extra">  flush_jitter = "2s"</div><div class="gmail_extra">  hostname = ""</div><div class="gmail_extra">  interval = "5s"</div><div class="gmail_extra">  metric_batch_size = 1000</div><div class="gmail_extra">  metric_buffer_limit = 10000</div><div class="gmail_extra">  omit_hostname = false</div><div class="gmail_extra">  quiet = false</div><div class="gmail_extra">  round_interval = true</div><div class="gmail_extra"><br></div><div class="gmail_extra">[[inputs.tcp_listener]]</div><div class="gmail_extra">  allowed_pending_messages = 10000</div><div class="gmail_extra">  data_format = "graphite"</div><div class="gmail_extra">  max_tcp_connections = 250</div><div class="gmail_extra">  service_address = ":8094"</div><div class="gmail_extra">  tagexclude = [ "collectd-garbage" ]</div><div class="gmail_extra">  templates = [ "collectd-garbage.measurement.field*" ]</div><div class="gmail_extra"><br></div><div class="gmail_extra">[[outputs.influxdb]]</div><div class="gmail_extra"><div class="gmail_extra">  urls = ["<a href="http://influxdb.acme.com:8086">http://influxdb.acme.com:8086</a>"]</div><div class="gmail_extra">  database = "stats"</div><div class="gmail_extra">  retention_policy = ""</div><div class="gmail_extra">  write_consistency = "any"</div><div class="gmail_extra">  timeout = "5s"</div><div class="gmail_extra"><br></div><div class="gmail_extra">Obviously you'll have to update that telegraf configuration to suit what you've got, but we've been using that spec and it seems to work quite well. I've not tested that configuration, but it's taken from what we're using, but with a sample influx output substituted for the Kafka one we use.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The InfluxData guys were also pointing out that there's settings you can make in the Telegraf setup to tune your interface to InfluxDB, so it's maybe worthwhile from that point of view. If you don't want to run a Telegraf instance on each box then you could arrange for one box in a group to act as a forwarder and get all the "child" collectd instances to send to that instead. Downside is that all the children would obviously have to have the same added tags.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Hope this helps, regards. Bob Cross.</div><div class="gmail_extra">(PS you might want to use a more descriptive subject line next time!!)</div></div></div></div></div>