2020-07-02 23:59:29 +08:00
|
|
|
# Execd Output Plugin
|
|
|
|
|
|
|
|
|
|
The `execd` plugin runs an external program as a daemon.
|
|
|
|
|
|
2020-07-10 02:29:12 +08:00
|
|
|
Telegraf minimum version: Telegraf 1.15.0
|
|
|
|
|
|
2021-11-25 02:47:33 +08:00
|
|
|
## Configuration
|
2020-07-02 23:59:29 +08:00
|
|
|
|
|
|
|
|
```toml
|
2022-04-08 05:55:03 +08:00
|
|
|
# Run executable as long-running output plugin
|
2020-07-02 23:59:29 +08:00
|
|
|
[[outputs.execd]]
|
2020-07-21 05:41:04 +08:00
|
|
|
## One program to run as daemon.
|
|
|
|
|
## NOTE: process and each argument should each be their own string
|
2020-07-02 23:59:29 +08:00
|
|
|
command = ["my-telegraf-output", "--some-flag", "value"]
|
|
|
|
|
|
|
|
|
|
## Delay before the process is restarted after an unexpected termination
|
|
|
|
|
restart_delay = "10s"
|
|
|
|
|
|
|
|
|
|
## Data format to export.
|
|
|
|
|
## Each data format has its own unique set of configuration options, read
|
|
|
|
|
## more about them here:
|
|
|
|
|
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
|
data_format = "influx"
|
|
|
|
|
```
|
|
|
|
|
|
2021-11-25 02:47:33 +08:00
|
|
|
## Example
|
2020-07-02 23:59:29 +08:00
|
|
|
|
|
|
|
|
see [examples][]
|
|
|
|
|
|
2022-04-21 23:45:47 +08:00
|
|
|
[examples]: examples/
|