Where is Database Graphite

Asked by Phantom0308

Where is Database Graphite. Is create automatically or i must create it manually?

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Nicholas Leskiw
Solved:
Last query:
Last reply:
Revision history for this message
Phantom0308 (ghost-phantom33) said :
#1

Regarts

Phantom

Revision history for this message
Daniel Lawrence (dannyla) said :
#2

By default a sqlite3 database is created in the storage directory ( default: /opt/graphite/storage/graphite.db ).

You can always change this by updating local_settings.py in the webapp directory ( default: /opt/graphite/webapp/graphite/local_settings )

Given this is django application, you have access to all the django documentation on databases.

https://docs.djangoproject.com/en/dev/ref/databases/

Revision history for this message
Phantom0308 (ghost-phantom33) said :
#3

So. I haven't to create MySQL?

Revision history for this message
Best Nicholas Leskiw (nleskiw) said :
#4

No need for MySQL.
In /opt/graphite/webapp/graphite run:

python ./manage.py syncdb

That will setup the SQLite database.

Data is stored in /opt/graphite/storage/whisper
That is using the Whisper file format; no need for MySQL there either.

Revision history for this message
Phantom0308 (ghost-phantom33) said :
#5

Thanks ^^

Revision history for this message
Phantom0308 (ghost-phantom33) said :
#6

Thanks Nicholas Leskiw, that solved my question.