You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm deploying telegraf within a Kubernetes pod, and using config maps to put plugins in the /etc/telegraf/telegraf.d folder. The way Kubernetes does config maps, is you file is placed in the folder as a link to a file in a subfolder, linked to another actual folder which contains your file. Somehow this causes telegraf to load my file 2x, and thus my plugin is configured to run 2x.
Here is the output from doing ls -la on the telegraf.d folder after the config map is mounted:
/etc/telegraf/telegraf.d # ls -la
total 4
drwxrwxrwt 3 root root 100 May 10 01:53 .
drwxr-xr-x 1 root root 4096 May 10 01:53 ..
drwxr-xr-x 2 root root 60 May 10 01:53 ..2018_05_10_01_53_36.330728263
lrwxrwxrwx 1 root root 31 May 10 01:53 ..data -> ..2018_05_10_01_53_36.330728263
lrwxrwxrwx 1 root root 22 May 10 01:53 prometheus.conf -> ..data/prometheus.conf
/etc/telegraf/telegraf.d # ls ..2018_05_10_01_53_36.330728263/
prometheus.conf
/etc/telegraf/telegraf.d #
When telegraf starts up I can see the input plugin is loaded 2x
I'm deploying telegraf within a Kubernetes pod, and using config maps to put plugins in the /etc/telegraf/telegraf.d folder. The way Kubernetes does config maps, is you file is placed in the folder as a link to a file in a subfolder, linked to another actual folder which contains your file. Somehow this causes telegraf to load my file 2x, and thus my plugin is configured to run 2x.
Here is the output from doing
ls -la
on the telegraf.d folder after the config map is mounted:When telegraf starts up I can see the input plugin is loaded 2x
Ideally telegraf does not load any hidden file, or file that starts with a period
.
when loading files from the config-directory.For reference here is my Kubernetes yaml that defines the deployment, and config map.
The text was updated successfully, but these errors were encountered: