Changes between Version 5 and Version 6 of HowTo/LabWikiGraphUsingCSV


Ignore:
Timestamp:
06/09/14 18:39:00 (10 years ago)
Author:
dbhat@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/LabWikiGraphUsingCSV

    v5 v6  
    11= Example to Plot !LabWiki Graph from a CSV File =
    22
    3 == 1. On InstaGENI, use the following image which has the latest GIMI and other Tools installed: ==
     3== 1. On InstaGENI, use the following image which has the latest GIMI and other required Tools installed ==
    44
    55
     
    1616For this example, the CSV File used is attached here (wimaxss.csv)
    1717
    18 Each of the fields has been taken as a separate measurement point for this example.
     18Each of the fields is taken as a separate measurement point for this example.
    1919
    2020
     
    5454=== 3.1 Define a class of measurement point variables ===
    5555
    56 This is based on the number and type of the fields in the CSV file
     56This is based on the number and data type of the fields in the CSV file
    5757
    5858{{{
     
    9595=== Specify number of lines to read ===
    9696
    97 The log.backward() function specifies the number of lines to read while doing a file tail. In this example, it reads only 1 line from the file's history.
     97The log.backward() function specifies the number of lines to read while doing a file tail. In this example, we read 1 line from the file's history.
    9898
    9999{{{
     
    108108end
    109109}}}
    110 
    111110
    112111
     
    222221=== 4.3 Define OML Application with path on VM ===
    223222
     223Here, you will need to define a measurement function for the measurement points as defined in step 3.1. Replace "/usr/local/bin/ofcollect.rb" with the path of your OML4R application script written in Step 3.
    224224
    225225{{{
     
    231231  app.defProperty("interval","Interval",'-i', {:type => :string})
    232232  app.defMeasurement('wrapper_wimaxss') do |m|
    233     m.defMetric(':pathtype', :string)
    234     m.defMetric('throughput',:int64)
    235     m.defMetric('instput',:int64)
     233    m.defMetric('ifacemac', :string)
     234    m.defMetric('ssid',:int64)
     235    m.defMetric('netoper', :string)
    236236  end
    237237end
     
    239239
    240240=== 4.4 Create Node Group with Application ===
     241
     242The 'target' property specifies the path of the CSV file on the VM.
    241243
    242244{{{
     
    252254
    253255=== 4.5 Define parameters for Graph ===
     256
     257Here, we draw two types of graphs. The first one is a Line Graph which plots SSID as a function of time for ever Hardware MAC Address. [[BR]]
     258
     259The second graph is a Histogram which plots SSID as a function of time for every Network Operator
    254260
    255261Line Graph
     
    300306  app.defProperty("interval","Interval",'-i', {:type => :string})
    301307  app.defMeasurement('wrapper_wimaxss') do |m|
    302     m.defMetric(':pathtype', :string)
    303     m.defMetric('throughput',:int64)
    304     m.defMetric('instput',:int64)
     308    m.defMetric('ifacemac', :string)
     309    m.defMetric('ssid',:int64)
     310    m.defMetric('netoper', :string)
    305311  end
    306312end