mirror of
https://github.com/wahyd4/telegraf.git
synced 2026-08-22 02:56:05 +10:00
25 lines
685 B
Markdown
25 lines
685 B
Markdown
# Benchmark Input Plugin
|
|
|
|
The benchmark plugin reads metrics from file and continuously adds them as
|
|
quickly as possible. It can be used for benchmarking Telegraf performance as
|
|
well as the output sources.
|
|
|
|
### Configuration:
|
|
|
|
```toml
|
|
# Generate test data for performance testing
|
|
[[inputs.benchmark]]
|
|
## File containing input data
|
|
filename = "/tmp/testdata"
|
|
|
|
## Data format to consume.
|
|
## 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_INPUT.md
|
|
data_format = "influx"
|
|
```
|
|
|
|
### Metrics:
|
|
|
|
The metrics in the input file are added without modification.
|