1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/graphite/README.md

48 lines
856 B
Markdown
Raw Normal View History

2017-03-11 12:05:03 +02:00
graphite
========
[Graphite][1] does three things:
- Kick ass.
- Chew bubblegum.
- Make it easy to store and graph metrics.
2017-03-11 12:31:59 +02:00
## docker-compose.yml
```yaml
graphite:
image: vimagick/graphite
ports:
- 2003:2003
- 2004:2004
- 7002:7002
- 8080:8080
- 9001:9001
volumes:
- ./data:/opt/graphite/storage
restart: always
```
## Up and Running
```bash
$ cd ~/fig/graphite
$ mkdir -p data/log/webapp
$ docker-compose up -d
2017-03-12 01:20:49 +02:00
$ docker-compose exec graphite sh
2017-03-11 12:31:59 +02:00
>>> python webapp/manage.py migrate --run-syncdb --noinput
>>> exit
2017-03-12 01:20:49 +02:00
$ tree -F -L 3
2017-03-11 12:31:59 +02:00
├── data/
│   ├── carbon-cache-a.pid
│   ├── graphite.db
│   ├── log/
2017-03-12 01:20:49 +02:00
│   │   └── webapp/
2017-03-11 12:31:59 +02:00
│   └── whisper/
2017-03-12 01:20:49 +02:00
│   └── carbon/
2017-03-11 12:31:59 +02:00
└── docker-compose.yml
$ curl http://localhost:8080
```
2017-03-11 12:05:03 +02:00
[1]: http://graphiteapp.org/