I want to use the inputs.exec plugin to send data from my python script to our monitoring platform via telegraf. I have created the following inputs.exec.conf file in telegraf.d
not sure if Json data format is appropriate data format here but since I’m getting the response from the rest api I’m using in this script in json format I have used json as the data format
this is a single snippet of output line that is being send to our monitoring platform Wavefront. 177 such lines are sent when we execute the python code.
I was checking the sudo systemctl status telegraf.service and it gave this error
[inputs.exec] Error in plugin: exec: Command timed out. for command ‘/usr/bin/python3.6 /home/xyz/abc.py’
so I increased the timeout to 5m then later it gave this error
[agent] [inputs.exec] did not complete within its interval
Is there an error with .conf file or the command parameter here
commands = ["/usr/bin/python3.6 /home/xyz/abc.py"]
timeout = “1m”
data_format = “json”