Discussion:
[influxdb] How to add a plugin to telegraf?
Philipe Dupont
2016-05-26 08:41:13 UTC
Permalink
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
--
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.
m***@groupe-esigelec.fr
2016-05-30 08:16:07 UTC
Permalink
Thank you very much.
--
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/8a0bf545-a9e7-402c-8a08-1f5464ef7d8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
p***@gmail.com
2017-09-12 00:12:08 UTC
Permalink
Post by m***@groupe-esigelec.fr
Thank you very much.
Can you explain how to doit in windows platform ?
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups "InfluxData" 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/8c97ea6e-934d-4bf1-8055-61f76e148536%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...