Skip to content

Commit

Permalink
Add Telegraf
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Sep 24, 2016
1 parent c097039 commit 7340f3f
Show file tree
Hide file tree
Showing 3 changed files with 1,967 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Docker-compose files for a simple uptodate InfluxDB + Grafana stack
# Docker-compose files for a simple uptodate
# InfluxDB
# + Grafana stack
# + Telegraf

Get the stack (only once):

Expand All @@ -7,13 +10,14 @@ git clone https://github.com/nicolargo/docker-influxdb-grafana.git
cd docker-influxdb-grafana
docker pull grafana/grafana
docker pull influxdb
pip install docker-compose
docker pull telegraf
```

Run your stack:

```
docker-compose up -d
```

Show me the logs:
Expand All @@ -35,5 +39,11 @@ Update it:
git pull
docker pull grafana/grafana
docker pull influxdb
pip install --upgrade docker-compose
docker pull telegraf
```

If you want to run Telegraf, edit the telegraf.conf to yours needs and:

```
docker exec telegraf telegraf
```
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
influxdb:
image: influxdb:latest
container_name: influxdb
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
env_file:
- 'env.influxdb'

telegraf:
image: telegraf:latest
container_name: telegraf
links:
- influxdb
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro

grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
links:
Expand Down
Loading

0 comments on commit 7340f3f

Please sign in to comment.