Changeset 457

Show
Ignore:
Timestamp:
01/11/07 16:46:08 (6 years ago)
Author:
max
Message:

Start making component stat pages useful

Location:
util
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • util/server_daily_maint

    r420 r457  
    365365 
    366366                                my $g = "c_".$c."_success"; 
    367                                 $store->{per_hour}->[$hr_num]->{$g."_counter"}++; 
     367                                $store->{per_hour}->[$hr_num]->{'c_'.$c.'_runs'}++; 
     368                                $store->{total}->{'c_'.$c.'_runs'}++; 
    368369                                $store->{per_hour}->[$hr_num]->{$g."_sysid_list"}->{$sid}++ if ($sid); 
    369                                 $store->{total}->{$g."_counter"}++; 
    370370 
    371371                                # duration (total count, min, max, average from duration/counter) 
     
    380380 
    381381                                my $g = "c_".$c."_fail"; 
    382                                 $store->{per_hour}->[$hr_num]->{$g."_counter"}++; 
     382                                $store->{per_hour}->[$hr_num]->{'c_'.$c.'_runs'}++; 
     383                                $store->{total}->{'c_'.$c.'_runs'}++; 
    383384                                $store->{per_hour}->[$hr_num]->{$g."_sysid_list"}->{$sid}++ if ($sid); 
    384                                 $store->{total}->{$g."_counter"}++; 
    385385 
    386386                                # duration (total count, min, max, average from duration/counter) 
     
    10001000        my %clist; 
    10011001        foreach my $c (sort keys %{($store->{total})}) { 
    1002                 if (($c =~ /^c_(.*)_success_counter$/) || 
    1003                     ($c =~ /^c_(.*)_fail_counter$/)) { 
     1002                if ($c =~ /^c_(.*)_runs$/) { 
    10041003                        # skip if any '/' or '`' chars in name 
    10051004                        next if (($1 =~ /\//) || ($1 =~ /`/)); 
     
    10521051                $template->param('NAME', $c); 
    10531052 
    1054                 &report_count_data($template, 'COMPONENT_SUCCESS_RUNS', "c_".$c."_success_counter", "all"); 
    1055                 &report_count_data($template, 'COMPONENT_FAIL_RUNS', "c_".$c."_fail_counter", "brief"); 
    1056                 &graph_count_data($template, 'GRAPHS_OVERALL', "day week 12week year", 0, "c_".$c."_success_counter", "c_".$c."_fail_counter"); 
     1053                 &report_count_data($template, 'SUCCESS', 'c_'.$c.'_success_sysid_list', 'all'); 
     1054                 &report_count_data($template, 'MISSING', 'c_'.$c.'_missing_sysid_list', 'all'); 
     1055                 &report_count_data($template, 'FAILURE', 'c_'.$c.'_fail_sysid_list', 'all'); 
     1056                 &graph_count_data($template, 'GRAPHS_USAGE', 'day week 12week year', 0, 'c_'.$c.'_success_sysid_list', 'c_'.$c.'_missing_sysid_list', 'c_'.$c.'_fail_sysid_list'); 
     1057 
     1058                &report_count_data($template, 'RUNS_SEEN', 'c_'.$c.'_runs', "all"); 
     1059                &graph_count_data($template, 'GRAPHS_RUNS', "day week 12week year", 0, 'c_'.$c.'_runs'); 
    10571060 
    10581061                my @sf;  
  • util/server_daily_maint_component.tmpl

    r375 r457  
    99 
    1010<tr><td align=left valign=top nowrap> 
    11 <h2>Success/Failure</h2> 
    12 <i>(# of times called and return status)</i><br> 
    13 <b>Successful runs:</b> <font color=lightgreen><i>(green)</i></font><br> 
    14 <TMPL_LOOP NAME=COMPONENT_SUCCESS_RUNS> 
    15   <li>in last <TMPL_VAR NAME=TIMESLICE>: <b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 
    16 </TMPL_LOOP> 
    17 <li><b>TOTAL SEEN: <u><TMPL_VAR NAME=COMPONENT_SUCCESS_RUNS_TOTAL></u></b></li> 
    18 <br><b>Failed runs:</b> <font color=lightblue><i>(blue)</i></font><br> 
    19 <TMPL_LOOP NAME=COMPONENT_FAIL_RUNS> 
     11<h2>Overview</h2> 
     12<p>by unique systems</p> 
     13<b><font color="lightgreen">Successes</font></b> 
     14<TMPL_LOOP NAME=SUCCESS> 
    2015 <li>in last <TMPL_VAR NAME=TIMESLICE>: <b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 
    2116</TMPL_LOOP> 
    22 <li><b>TOTAL SEEN: <u><TMPL_VAR NAME=COMPONENT_FAIL_RUNS_TOTAL></u></b></li></td> 
     17<!-- <b>TOTAL: <u><TMPL_VAR NAME=SUCCESS_TOTAL></u></b><br> --> 
     18<br><b><font color="pink">Failures</font></b> 
     19<TMPL_LOOP NAME=FAILURE> 
     20 <li>in last <TMPL_VAR NAME=TIMESLICE>: <b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 
     21</TMPL_LOOP> 
     22<!-- <b>TOTAL: <u><TMPL_VAR NAME=FAILURE_TOTAL></u></b> --> 
     23<br><b><font color="lightblue">Missing Data</font></b> 
     24<TMPL_LOOP NAME=MISSING> 
     25 <li>in last <TMPL_VAR NAME=TIMESLICE>: <b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 
     26</TMPL_LOOP> 
     27<!-- <b>TOTAL: <u><TMPL_VAR NAME=MISSING_TOTAL></u></b> --> 
     28</td><td nowrap><br> 
     29<TMPL_LOOP NAME=GRAPHS_USAGE> 
     30 <TMPL_VAR NAME=GRAPH> 
     31</TMPL_LOOP> 
     32<TMPL_LOOP NAME=GRAPHS_MISSING> 
     33 <br><TMPL_VAR NAME=GRAPH> 
     34</TMPL_LOOP> 
     35</td></tr> 
    2336 
     37<tr><td align=left valign=top nowrap> 
     38<h2>Runs</h2> 
     39<p># of times <TMPL_VAR NAME=NAME> ran</p> 
     40<TMPL_LOOP NAME=RUNS_SEEN> 
     41 <li>in last <TMPL_VAR NAME=TIMESLICE>:<b><TMPL_VAR NAME=SEEN></b> (previous <TMPL_VAR NAME=PREVIOUS>)</li> 
     42</TMPL_LOOP> 
     43<b>TOTAL: <u><TMPL_VAR NAME=RUNS_SEEN_TOTAL></u></b> 
    2444</td><td nowrap><br> 
    25  
    26 <TMPL_LOOP NAME=GRAPHS_OVERALL> 
     45<TMPL_LOOP NAME=GRAPHS_RUNS> 
    2746 <TMPL_VAR NAME=GRAPH> 
    2847</TMPL_LOOP>