MetriVis Overview | Download | User Manual | Development
Tutorial Overview | Creating a Database |

MetriVis Database

Overview

This page contains detailed information about the structure of the database that is used by MetriVis.

Database Structure

MetriVis uses SQLite and has a very simple database structure, it consists of following dbs:

Converting Data: CSV to SQLite

MetriVis comes with a simple perl script that let's the user convert their CSV (coma separated values) data to a MetriVis compatible sqlite3 database. You can browse this script here or download it via subversion from: This script will read all csv data in the directory of the script and write them into a sqlite3 database called metrivis.db. At the moment this script is optimized to read in netflow data at the ETH Zurich. This data has a format similiar to this:
some_seed, start_time, stop_time, mbuf, netflow_metric_name1, netflow_metric_name2, ..
        0,  134123410, 134123420,    0,                    4,            246294264, ..
        0,  134123420, 134123430,    0,                    5,            246134264, ..
        0,  134123430, 134123440,    0,                   32,            246231568, ..        

The script just reads this csv data file and creates entries according to the header of the file into the label database. For each netflow_metric_name[n] there is one entry in the label database and in the data database. For the label database only the columns starting from offset 4 are important, skip the others. The following code snippet shows this:

  # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  # >>>>>>>>>>>> ENTER YOUR CODE HERE:
  # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  #
  # In our csv file, skip the first 4 columns, because they do not contain
  # any important data. This may be different in your csv file. Enter the 
  # column number with the first x/y plot data.
  my $offset = 4;



Copyright © 2007 Patrick Boenzli, ETH Zurich Overview | Download | User Manual | Development