Philipe Dupont
2016-05-26 08:41:13 UTC
Good morning, I would like to know how to properly create a plugin for
telegraf.
I have all ready write the plugin following the inputs structure in .go. I
just count +1 every 10sec and want to store the counter into influx. Just
to try and understand how to add plugin to be able to add other more
complicated.
I have also write a file.conf but I don't know if the file is made
correctly and if I need it. I follow the example here:
https://influxdata.com/get-started/sending-data-to-influxdb-with-telegraf/
Where do it save my test plugin.go because I don't want to put on
github/telegraf/plugin/inputs/all./all.go ? And after I just need to add to
telegraf.conf in the input section [[input.myplugin]] ?
If someone have all ready made this or have an example to link the file.go
with telegraf it could be really helpful.
Thank you.
Phil Dpt
telegraf.
I have all ready write the plugin following the inputs structure in .go. I
just count +1 every 10sec and want to store the counter into influx. Just
to try and understand how to add plugin to be able to add other more
complicated.
I have also write a file.conf but I don't know if the file is made
correctly and if I need it. I follow the example here:
https://influxdata.com/get-started/sending-data-to-influxdb-with-telegraf/
Where do it save my test plugin.go because I don't want to put on
github/telegraf/plugin/inputs/all./all.go ? And after I just need to add to
telegraf.conf in the input section [[input.myplugin]] ?
If someone have all ready made this or have an example to link the file.go
with telegraf it could be really helpful.
Thank you.
Phil Dpt
--
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 influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/22ebee3c-6122-4745-b880-bf8047d0d8d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 influxdb+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/22ebee3c-6122-4745-b880-bf8047d0d8d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.