1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00
dockerfiles/telegraf
2017-01-16 23:31:40 +08:00
..
docker-compose.yml fix telegraf 2016-06-01 18:30:12 +08:00
README.md add telegraf 2016-06-01 14:54:18 +08:00
telegraf.conf update telegraf.conf 2017-01-16 23:31:40 +08:00

telegraf

Telegraf is an open source agent written in Go for collecting metrics and data on the system it's running on or from other services. Telegraf writes data it collects to InfluxDB in the correct format.

docker-compose.yml

telegraf:
  image: telegraf:alpine
  ports:
    - "8092:8092/udp"
    - "8094:8094/tcp"
  volumes:
    - ./telegraf.conf:/etc/telegraf/telegraf.conf
  restart: always

up and running

$ cd ~/fig/telegraf/
$ docker-compose run --rm telegraf -sample > telegraf.conf
$ vim telegraf.conf
$ docker-compose up -d