Changes between Version 13 and Version 14 of Tutorials/oMF/tut2


Ignore:
Timestamp:
Oct 19, 2014, 5:51:42 AM (10 years ago)
Author:
parishad
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/oMF/tut2

    v13 v14  
    295295}}}
    296296
    297 The result service supports either dumping of the entire database or a SQL-like querying option to selectively retrieve required measurement data. The below HTTP request shows an example query to retrieve the reported statistics from the OML enabled monitor for MobilityFirst Routers. In order to see the results he following web page should be retrieved using any browser. The following URL should be typed in the browser:
     297The result service supports either dumping of the entire database or a SQL-like querying option to selectively retrieve required measurement data. The below HTTP request shows an example query to retrieve the reported statistics from the OML enabled monitor for MobilityFirst Routers. In order to see the results the following web page should be retrieved using any browser. The following URL should be typed in the browser:
    298298
    299299{{{
     
    307307This data can also be downloaded using "wget" command and easily visualized using a tool such as gnuplot. You can find a helper script in the tutorial package that plots they key performance data downloaded.
    308308
    309 '''Method 2:''' Alternatively, the performance data may also be visualized using ''omf-web'', OMF's web-based visualization service. It also works in concert with the result service referenced in Method 1, and makes available a variety of graph widgets to visualize live-experiment data logged using OML. Detailed documentation on the installation and usage of omf-web can be found on the [https://github.com/mytestbed/omf_web omf-web github site].
    310 
    311 Since this is installed on all ORBIT domains, we will only concern ourselves with defining the widget configuration required to bring up the live graphs for the performance data we are logging. Below is the contents of the simple two widget configuration file available with this tutorial package:
    312 
    313 {{{
    314 #!yaml
    315 title: MobilityFirst Data Transfer Performance
    316 
    317 # Port number the omf-web service should run at
    318 port: 4041
    319 
    320 # Root url of AM result2 service
    321 result2_server: http://oml:5054
    322 
    323 # Define tabs, widgets for visualisation below
    324 #
    325 tabs:
    326   # Data transfer throughput
    327   mfperf_tput:
    328     # Line chart widget, need to define columns in mapping section.   
    329     - name: OML TS SERVER
    330       type: line_chart
    331       data: msg_out
    332       mapping:
    333         # x-axis, y-axis and group_by.
    334         x: ts
    335         y: kbytes_per_sec
    336         group_by: oml_sender_id
    337   mfperf_rtt:
    338     # Line chart widget, need to define columns in mapping section.   
    339     - name: OML TS SERVER
    340       type: line_chart
    341       data: msg_out
    342       mapping:
    343         # x-axis, y-axis and group_by.
    344         x: msg_length
    345         y: transfer_time
    346         group_by: oml_sender_id
    347 }}}
    348 
    349 To bring up the visualization, start the basic omf-web service with the configuration file argument:
    350 
    351 {{{
    352 #!sh
    353 omf-web-basic -c <config_yaml_file> <experiment id>
    354 }}}
     309'''Method 2:''' Alternatively, the performance data may be visualized using ''omf-web'', OMF's web-based visualization service. It also works in concert with the result service referenced in Method 1, and makes available a variety of graph widgets to visualize live-experiment data logged using OML. Detailed documentation on the installation and usage of omf-web can be found on the [https://github.com/mytestbed/omf_web omf-web github site].
     310
     311Since this is installed on all ORBIT domains, we only need to concern ourselves with defining the widget configuration required to bring up the live graphs for the performance data we are logging. In order to bring up the visualization, we only need to start the basic omf-web service with the configuration file arguments.