Hi Everyone. I am trying to use the exec plugin on Telegraf and the script inside just does an "echo date".
The Telegraf config is as follows: # Read flattened metrics from one or more commands that output JSON to stdout [[inputs.exec]] # Shell/commands array # Full command line to executable with parameters, or a glob pattern to run all matching files. commands = ["/tmp/test.sh", "/tmp/test2.sh", "/tmp/collect_metrics*.sh"] ## Timeout for each command to complete. timeout = "5s" # Data format to consume. # NOTE json only reads numerical measurements, strings and booleans are ignored. data_format = "json" # measurement name suffix (for separating different commands) name_suffix = "_mycollector" The script works locally (from /tmp/collect_metrics.sh), but its not working for me. Any help is appreciated. Cheers! -- 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 [email protected]. To post to this group, send email to [email protected]. 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/31fdb032-4c7f-4abb-b40a-1565cd6dd3fa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
