mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
add telegraf
This commit is contained in:
parent
e04368d294
commit
de76f2d29e
@ -108,6 +108,7 @@ A collection of delicious docker recipes.
|
||||
- [x] squid
|
||||
- [x] swarm-arm
|
||||
- [x] taskd
|
||||
- [x] telegraf
|
||||
- [x] tinc :+1:
|
||||
- [x] tmail :beetle:
|
||||
- [x] tor
|
||||
|
30
telegraf/README.md
Normal file
30
telegraf/README.md
Normal 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
|
8
telegraf/docker-compose.yml
Normal file
8
telegraf/docker-compose.yml
Normal 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
1569
telegraf/telegraf.conf
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user