Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Overview

We should be able to run python monitoring scripts periodically which will write output to ptl_test_results.json along with the tests, So that there will be no need of changing framework whenever we want to monitor a new value.

Synopsis:

The monitoring scripts will be stored under fw/ptl/utils/tools directory.

At the time of running tests we can provide input to benchpress to use these monitoring scripts to run periodically at a specific interval.

The monitoring script will be run in separate threads.

The script should use PBSTestSuite.add_additional_data_to_report(dict{}) to write the output to ptl_test_results.json

Example:

We can add a few monitoring scripts for disk monitoring , network monitoring etc.

Interface:

pbs_benchpress -t TestSuite --monitor=<monitoring script filenames> --monitor-freq=300

--monitor : will accept monitoring script filenames in comma separated way.

--monitor-freq: Default value will be 60 secs , input can be given in secs.


Example:

pbs_benchpress -t TestSuite --monitor=disk_monitor.py,network_monitor.py --montior-freq=600











OSS Site Map

Project Documentation Main Page

Developer Guide Pages



  • No labels