futuregrid / cloud-metrics

Project to create usage statistics from IaaS such as OpenStack, Eucalyptus, and Nimbus
2 stars 3 forks source link

Adding hostname and version to database #20

Closed lee212 closed 12 years ago

lee212 commented 12 years ago

In order to handle multiple hosts of eucalyptus, we need to add new columns 'hostname' and 'version' to the Instance table in the database.

Hostname; The name of machine resources. E.g. india, sierra

version; The version of eucalyptus. E.g. 2.0, 3.0.2

laszewsk commented 12 years ago

possibly also zone

On Wed, May 16, 2012 at 4:55 PM, lee212 < reply@reply.github.com

wrote:

In order to handle multiple hosts of eucalyptus, we need to add new columns 'hostname' and 'version' to the Instance table in the database.

Hostname; The name of machine resources. E.g. india, sierra

version; The version of eucalyptus. E.g. 2.0, 3.0.2


Reply to this email directly or view it on GitHub: https://github.com/futuregrid/futuregrid-cloud-metrics/issues/20

lee212 commented 12 years ago

zone will be added with another issue number.

euca_version, euca_hostname are added to the 'instance' table and futuregrid.cfg configuration file. futuregrid.cfg specifies a version and a hostname of eucalyptus and they are referenced when new log data (instances) are inserted to the db. In order words, 1) A user runs 'fg-parser' 2) fg-parser reads 'futuregrid.cfg' 3) euca_version and euca_hostname entries are loaded 4) after completing parsing log files... 5) Insert data into database with the version and hostname info from futuregrid.cfg