Discussion:
[influxdb] Plugin not found ?
j***@gmail.com
2017-06-06 18:48:05 UTC
Permalink
I couldn't find an answer in the documentation for either an environmental variable or the default location for plugins.

I have telegraf installed and I a directory in /home/test/telegraf with customized telegraf "stuff". Such as telegraf.conf and a plugin directory that has a custom plugin in it.

I can set the TELEGRAF_CONFIG_PATH env variable to use /home/test/telegraf/telegraf.conf, but I haven't figured out how to point to the custom plugin directory.

when I test telegraf I get the following error:

export TELEGRAF_CONFIG_PATH=/home/test/telegraf.conf
***@doctor-who:~# /usr/bin/telegraf --test
2017/06/06 14:26:44 I! Using config file: /home/test/telegraf.conf
2017/06/06 14:26:44 E! Error parsing /home/test/telegraf.conf, Undefined but requested input: octel


My plugin directory structure

***@doctor-who:/home/test/telegraf/plugins/inputs/octel# ls -l
-rw-r--r-- 1 root root 1639 Jun 5 15:03 collection.go
drwxr-xr-x 2 root root 4096 Jun 5 15:03 oc
-rw-r--r-- 1 root root 6883 Jun 5 15:03 octel.go
-rw-r--r-- 1 root root 5598 Jun 5 15:03 octel_test.go
-rw-r--r-- 1 root root 1186 Jun 5 15:03 README.md

***@doctor-who:/home/test/telegraf/plugins/inputs/octel# cd oc

***@doctor-who:/home/test/telegraf/plugins/inputs/octel/oc# ls
oc.pb.go oc.proto

***@doctor-who:/home/test/telegraf/plugins/inputs/octel/oc#
--
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/a013789d-3572-4459-a05d-c7c8e813fce8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...