extract telegraf from monitoring to run int on multible docker hosts
This commit is contained in:
parent
118c050be9
commit
b3c96687c3
6 changed files with 48 additions and 40 deletions
19
telegraf/test-telegraf.sh
Normal file
19
telegraf/test-telegraf.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
# call this script like "./test-telegraf.sh net:cpu"
|
||||
|
||||
docker run \
|
||||
--rm \
|
||||
--volume $(pwd)/telegraf/telegraf.conf:/telegraf.conf \
|
||||
--volume /:/hostfs:ro \
|
||||
--volume /var/run/utmp:/var/run/utmp:ro \
|
||||
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
|
||||
-e HOST_ETC=/hostfs/etc \
|
||||
-e HOST_PROC=/hostfs/proc \
|
||||
-e HOST_SYS=/hostfs/sys \
|
||||
-e HOST_VAR=/hostfs/var \
|
||||
-e HOST_RUN=/hostfs/run \
|
||||
-e HOST_MOUNT_PREFIX=/hostfs \
|
||||
telegraf \
|
||||
telegraf \
|
||||
--config /telegraf.conf \
|
||||
--input-filter $1 \
|
||||
--test
|
Loading…
Add table
Add a link
Reference in a new issue