2016-01-26 00:34:09 +00:00
|
|
|
# Example Input Plugin
|
|
|
|
|
|
|
|
The example plugin gathers metrics about example things
|
|
|
|
|
|
|
|
### Configuration:
|
|
|
|
|
2016-02-09 22:03:46 +00:00
|
|
|
```toml
|
2016-01-26 00:34:09 +00:00
|
|
|
# Description
|
|
|
|
[[inputs.example]]
|
|
|
|
# SampleConfig
|
|
|
|
```
|
|
|
|
|
|
|
|
### Measurements & Fields:
|
|
|
|
|
|
|
|
<optional description>
|
|
|
|
|
|
|
|
- measurement1
|
|
|
|
- field1 (type, unit)
|
|
|
|
- field2 (float, percent)
|
|
|
|
- measurement2
|
|
|
|
- field3 (integer, bytes)
|
|
|
|
|
|
|
|
### Tags:
|
|
|
|
|
|
|
|
- All measurements have the following tags:
|
|
|
|
- tag1 (optional description)
|
|
|
|
- tag2
|
|
|
|
- measurement2 has the following tags:
|
|
|
|
- tag3
|
|
|
|
|
|
|
|
### Example Output:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ ./telegraf -config telegraf.conf -input-filter example -test
|
|
|
|
measurement1,tag1=foo,tag2=bar field1=1i,field2=2.1 1453831884664956455
|
|
|
|
measurement2,tag1=foo,tag2=bar,tag3=baz field3=1i 1453831884664956455
|
|
|
|
```
|