1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-02 03:37:40 +02:00

add telegraf

This commit is contained in:
kev 2016-06-01 14:54:18 +08:00
parent e04368d294
commit de76f2d29e
4 changed files with 1608 additions and 0 deletions

View File

@ -108,6 +108,7 @@ A collection of delicious docker recipes.
- [x] squid - [x] squid
- [x] swarm-arm - [x] swarm-arm
- [x] taskd - [x] taskd
- [x] telegraf
- [x] tinc :+1: - [x] tinc :+1:
- [x] tmail :beetle: - [x] tmail :beetle:
- [x] tor - [x] tor

30
telegraf/README.md Normal file
View File

@ -0,0 +1,30 @@
telegraf
========
[Telegraf][1] 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
```yaml
telegraf:
image: telegraf:alpine
ports:
- "8092:8092/udp"
- "8094:8094/tcp"
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf
restart: always
```
## up and running
```bash
$ cd ~/fig/telegraf/
$ docker-compose run --rm telegraf -sample > telegraf.conf
$ vim telegraf.conf
$ docker-compose up -d
```
[1]: https://github.com/influxdata/telegraf

View File

@ -0,0 +1,8 @@
telegraf:
image: telegraf:alpine
ports:
- "8092:8092/udp"
- "8094:8094/tcp"
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf
restart: always

1569
telegraf/telegraf.conf Normal file

File diff suppressed because it is too large Load Diff