Skip to content

Commit

Permalink
Added some testing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rickard-von-essen-iz committed Oct 17, 2017
1 parent d94b52d commit 724c329
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Testing
=======

To run a dockerized Telegraf instance that receives InfluxDB line protocol on
http://localhost:8086 and prints it out on stdout run:

```
docker run -p 8086:8086 -v $PWD/telegraf.conf:/etc/telegraf/telegraf.conf:ro telegraf
```
9 changes: 9 additions & 0 deletions testing/telegraf.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[agent]
interval = "10s"
omit_hostname = true

[[outputs.file]]
files = ["stdout"]

[[inputs.http_listener]]
service_address = ":8086"

0 comments on commit 724c329

Please sign in to comment.