How to check plugin status in telegraf?

隐身守侯 提交于 2021-01-05 06:10:56

问题


This is self added Q & A. I am using telegraf's Telegraf 1.14.0 version, I have configured a few input.exec plugins in my telegraf.conf file, now wanted to check if my configuration is working fine with all configured plugins(eg-->status on console). Is there a command for making sure all configured plugins status by command?


回答1:


To check working and status of all plugins configured in telegraf we could use following command. Written and tested in Telegraf 1.14.0 version.

telegraf -test -config /etc/telegraf/telegraf.conf

Where:

  • telegraf.conf is the main configuration file where all plugins are mentioned for gathering monitoring details. Make sure run this with user by which telegraf software is installed.


来源:https://stackoverflow.com/questions/65373841/how-to-check-plugin-status-in-telegraf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!