Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoungho committed Aug 1, 2019
1 parent c13935b commit 6951299
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -55,26 +55,26 @@ See usage with:
./telegraf config > telegraf.conf
```

#### Generate config with DDS input & influxdb output plugins defined:
#### Run a single telegraf collection, outputing metrics to stdout:

```
./telegraf --input-filter dds_consumer --output-filter influxdb config
./telegraf --config telegraf.conf --test
```

#### Run a single telegraf collection, outputing metrics to stdout:
#### Generate config with DDS input & influxdb output plugins defined:

```
./telegraf --config telegraf.conf --test
./telegraf config --input-filter dds_consumer --output-filter influxdb
```

#### Generate a config file with DDS input & file output plugins:
```
./telegraf --input-filter dds_consumer --output-filter file config > dds_to_file.conf
./telegraf config --input-filter dds_consumer --output-filter file > dds_to_file.conf
```

When you run with the DDS input plugin, please make sure an XML file for DDS configurations is located at the ```config_path``` in your Telegraf TOML configuration.
When you run with ```dds_consumer``` plugin, please make sure an XML file for DDS configurations is located at the ```config_path``` in your Telegraf TOML config.

Example XML files (e.g. ```ShapeExample.xml```) and Telegraf config files are given at under ```example_configs``` directory.
Example XML files (e.g. ```ShapeExample.xml```) and Telegraf config files are given under ```example_configs``` directory.

```
./telegraf --config ./example_configs/dds_to_file.conf
Expand Down

0 comments on commit 6951299

Please sign in to comment.