2016-02-10 22:50:07 +00:00
|
|
|
# file Output Plugin
|
2017-02-20 10:50:39 +00:00
|
|
|
|
|
|
|
This plugin writes telegraf metrics to files
|
|
|
|
|
|
|
|
### Configuration
|
|
|
|
```
|
|
|
|
[[outputs.file]]
|
|
|
|
## Files to write to, "stdout" is a specially handled file.
|
|
|
|
files = ["stdout", "/tmp/metrics.out"]
|
|
|
|
|
|
|
|
## Data format to output.
|
2017-04-27 21:59:18 +00:00
|
|
|
## Each data format has its own unique set of configuration options, read
|
2017-02-20 10:50:39 +00:00
|
|
|
## more about them here:
|
|
|
|
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
data_format = "influx"
|
|
|
|
```
|