From 2738488cf7aeeccbb2cb1e4575593c7c75f2e2e7 Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 11 Mar 2017 18:31:59 +0800 Subject: [PATCH] update graphite --- graphite/README.md | 34 ++++++++++++++++++++++++++++++++++ graphite/docker-compose.yml | 2 ++ 2 files changed, 36 insertions(+) diff --git a/graphite/README.md b/graphite/README.md index f644dd4..0557478 100644 --- a/graphite/README.md +++ b/graphite/README.md @@ -7,4 +7,38 @@ graphite - Chew bubblegum. - Make it easy to store and graph metrics. +## 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 +>>> python webapp/manage.py migrate --run-syncdb --noinput +>>> exit +$ tree -F -L 2 +├── data/ +│   ├── carbon-cache-a.pid +│   ├── graphite.db +│   ├── log/ +│   └── whisper/ +└── docker-compose.yml +$ curl http://localhost:8080 +``` + [1]: http://graphiteapp.org/ diff --git a/graphite/docker-compose.yml b/graphite/docker-compose.yml index 22ca3e9..30b5f98 100644 --- a/graphite/docker-compose.yml +++ b/graphite/docker-compose.yml @@ -6,4 +6,6 @@ graphite: - 7002:7002 - 8080:8080 - 9001:9001 + volumes: + - ./data:/opt/graphite/storage restart: always