MFlib Overview

The Measurement Framework library (MFlib) enables experimenters to “instrumentize” their slice by automatically adding monitoring software and services to the slice. These services are designed to measure common information about the slice (e.g., cpu loads, number of packets sent over an interface, etc.) as well as system and custom logs. The library consists of a set of python calls that can be invoked from a Jupyter notebook or from any python program.

The easiest way to get started using MFLib is to use the example Jupyter notebooks that are preinstalled in the FABRIC JupyterHub. You may also clone the jupyter-examples repository yourself. See the start_here.ipynb notebook in the root directory of jupyter-examples. Look for the “Monitoring MFlib” section.

For the latest, most up-to-date documentatioons see https://fabrictestbed-mflib.readthedocs.io/en/latest/README.html

MFLib uses Prometheus and ELK to gather metrics and logs.

MFLib uses Grafana and Kibana to visualize the gathered metrics and logs. See Grafana and Kibana knowledge pages for details on how to access and use the dashboards with your experiment.

MFLib consists of several classes. Click on the links for method documentation.

  • Core – Core makes up the base class that defines methods needed to interact with the nodes in a slice, most notably with the special Measurement Node. This class is used by higer-level classes so the average user will not need to use this class directly.
  • MFLib – MFLib is the main class that a user will use to instrumentize a slice and interact with the monitoring systems.
  • MFVis – MFVis makes it easy to show and download Grafana graphs directly from python code. MFVis requires that the slice has been previously instumentized by MFLib

Source code is available at https://github.com/fabric-testbed/jupyter-examples/tree/mflib/fabric_examples/mflib

Updated on May 17, 2023

Was this article helpful?

Related Articles

Having problems?
Try searching or asking questions in the FABRIC community forums!
Go to Forums

Leave a Comment