IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2015, 9:19:19 AM (11 years ago)
Author:
bills
Message:

Working version of czartool with plots.
raw/ipp.czar.dat

Remove 'czartool - ipptopsps link' from Czar left panel menu

raw/ipp.php

Get czardb name and host from site.php

raw/czartool_getplot.php

czartool plots are now in project specific directory
get base directory from

raw/czartool_labels.php

XXX: a couple of testing hacks to remove
Include proj in arguments to links to czartool_getplot.php

czartool/czarpoll.pl

Support for gathering data from multiple project databases.
czartool::Plotter now has an optional project database member. 3 Plotter
instances now.

plotter0 is for non project specific plots.
plotter1 is for gpc1
plotter1 is for gpc2

Keep track and print out how long each poll iteration takes. If it takes
less than the supplied period, sleep for the remainder. Currently takes
about 140 seconds which is larger than the default 60 second period.

Turn off the ippToPsps data gathering by nulling out the stage list.

czartool/czarplot.pl

Support for multiple projects

czartool/czartool/Metrics.pm

Metrics has a projectDb pass to Plotter constructor.
hardcoded member gpc1Db is deleted

czartool/czartool/DayMetrics.pm

projectDb isntead of hard coded gpc1Db
pass dbname to StageMetrics and CzarDb methods.

czartool/czartool/Config.pm

Added support for 2 project databases

czartool/czartool/CzarDb.pm

Operations on the stage tables now take "dbname" parameter.
This is passed to StageMetrics constructor.
XXX: should we split query for getTimeMinMaxDiff by project.

czartool/czartool/Plotter.pm

Add _projectDb member. Save dbname to _project for use in many method
invocations

czartool/czartool/StageMetrics.pm

Add dbname parameter.
XXX: Actually I'm not sure this is used any longer. This may have been
from a previous iteration. I've since moved the DB info to Plotter and Metrics.
Leaving in for now since this version is fully tested.

czartool/czartool/MySQLDb.pm

Add method to get _dbName

czartool/czartool/MetricsIndex.pm

Add database paramter to constructor for superclass Metrics. (It used to
have hard coded gpc1 db

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/czartool/czarplot.pl

    r34249 r38258  
    3030my $log = undef;
    3131my $psps = undef;
     32my $project = 'gpc1';
    3233
    3334GetOptions (
    3435        "label|l=s" => \$label,
     36        "project=s" => \$project,
    3537        "stage|s=s" => \$stage,
    3638        "timeinpast|p=s" => \$timeinpast,
     
    110112my $newDayTime =  $config->getMetricsStartTime();
    111113
     114my $projectDb = $config->getDbInstanceForProject($project);
     115die "Failed to open database for $project.\n" unless $projectDb;
     116
     117
    112118my $plotter = undef;
    113119if ($savingToFile) {
    114120
    115     $plotter = czartool::Plotter->new_file($config, $path, $save_temps);
     121    $plotter = czartool::Plotter->new_file($config, $projectDb, $path, $save_temps);
    116122}
    117123else {
    118124
    119     $plotter = czartool::Plotter->new_display($config, $save_temps);
     125    $plotter = czartool::Plotter->new_display($config, $projectDb, $save_temps);
    120126}
    121127
Note: See TracChangeset for help on using the changeset viewer.