mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update graphite
This commit is contained in:
@@ -30,6 +30,7 @@ $ cd ~/fig/graphite
|
|||||||
$ mkdir -p data/log/webapp
|
$ mkdir -p data/log/webapp
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
$ docker-compose exec graphite sh
|
$ docker-compose exec graphite sh
|
||||||
|
>>> vi conf/storage-schemas.conf
|
||||||
>>> python webapp/manage.py migrate --run-syncdb --noinput
|
>>> python webapp/manage.py migrate --run-syncdb --noinput
|
||||||
>>> exit
|
>>> exit
|
||||||
$ tree -F -L 3
|
$ tree -F -L 3
|
||||||
@@ -44,4 +45,28 @@ $ tree -F -L 3
|
|||||||
$ curl http://localhost:8080
|
$ curl http://localhost:8080
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## storage-schemas.conf
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[carbon]
|
||||||
|
pattern = ^carbon\.
|
||||||
|
retentions = 60:90d
|
||||||
|
|
||||||
|
[leancloud_1day_for_1year]
|
||||||
|
pattern = ^test\.
|
||||||
|
retentions = 1d:1y
|
||||||
|
|
||||||
|
[default_1min_for_1day]
|
||||||
|
pattern = .*
|
||||||
|
retentions = 60s:1d
|
||||||
|
```
|
||||||
|
|
||||||
|
## Resize Whisper
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker-compose exec graphite sh
|
||||||
|
>>> cd storage/whisper/test
|
||||||
|
>>> find . -type f -name '*.wsp' -exec whisper-resize.py --nobackup {} 1d:1y \;
|
||||||
|
```
|
||||||
|
|
||||||
[1]: http://graphiteapp.org/
|
[1]: http://graphiteapp.org/
|
||||||
|
|||||||
Reference in New Issue
Block a user