mirror of
https://github.com/wahyd4/telegraf.git
synced 2026-08-10 21:26:05 +10:00
347 B
347 B
Exec Plugin
The exec plugin can execute arbitrary commands which return flattened JSON.
For example, if you have a json-returning command called mycollector, you could setup the exec plugin with:
[[exec.commands]]
command = "/usr/bin/mycollector --output=json"
name = "mycollector"
The name is used as a prefix for the measurements.