Thursday, May 19, 2011

Graphite Server Virtual Box Appliance

I have made some additional improvements to my automated Graphite installer. Last time I posted the install script, it was admittedly  missing several things, but the new one goes from ./install.sh to the Graphite web console in one go.

At any rate, the new installer has significantly eased the process of creating VM appliances for Graphite which I have made available for download if you are interested in taking Graphite for a test drive, or you need a pre-built development environment. Since the VMs, as configured, are resource limited, I am not sure if they are suitable for any production use, but if you bump up the CPUs, the memory and modify the setup to use some fast native (or SAN) disks for the Whisper storage, I imagine they would be pretty decent.

Here's some details you should know:

  • Created with Virtual Box 4.0.6
  • The OS user is helios. The password is helios.
  • The Graphite admin user is helios. The password is helios. Now that I think about it, the user's email address is graphite@heliosdev.org so you might want to review my summary below on how you can change this.
  • Once you start the VM, the Graphite Console is available at http://localhost and remotely at whatever IP you designate. (Out of the box, the NIC is configured for bridging).
  • The Graphite install script and supporting files are in /home/helios/graphite.
  • The carbon listener is started by /etc/init.d/carbon which runs the process as user www-data and I recommend you stick to using it. If you start carbon directly with sudo, the process will run as root and may create files that are subsequently not readable by www-data.
  • The carbon [linetext] listener listens on port 2003.

Changing the Graphite Admin User

The user accounts are stored in a sqlite database/file /opt/graphite/storage/graphite.db,  specifically in a table called auth_user. You can run the sqlitebrowser GUI tool and edit the file directly  (using sudo). Or, you can delete the file (using sudo) and re-initialize as follows:  (using sudo) 

  1. cd /opt/graphite/webapp/graphite 
  2. sudo python manage.py syncdb
This will recreate the database and prompt you to create a new admin user.

And I thank HostMonster for their nicely priced hosting that affords me the ability to serve these files.

Next post perhaps I will explain:
  • Why did I build this appliance using Desktop instead of Server ?
  • Where is the VMware version of this appliance ?
  • Where and when is the OpenTrace client for passing collected JMX metrics to Graphite ?

7 comments:

Bob Erb said...

Thanks for the VM.

Anonymous said...

whats the password for root user ?

Anonymous said...

not able 2 login into 64 bit vbox using helious credentials, any one else with same issue?

Mallik said...

I can not login to either 32 or 64 bit vbox images. Not sure if credentials are right for user helious. Is anyone else having this issue? :(

Anonymous said...

Hello: I downlodaded both tar files. Neither has an extension from what I see. I was trying to import them to virtual box to export and re-import them back into VMWare.

Anonymous said...

Hi when i extract tar only see 1 file Graphite32.0.9.8.8

how can i open .8 files

Anonymous said...

extension is bz2 not tar. its a trap D: