source: trunk/web/addons/job_monarch/templates/overview.tpl @ 409

Last change on this file since 409 was 409, checked in by bastiaans, 15 years ago

web/addons/job_monarch/version.php:

  • SVN version

web/addons/job_monarch/libtoga.php:

  • need $start in my graph.php

jobmond/jobmond.py:

  • added number of running and queued jobs metric reporting

web/addons/job_monarch/graph.php:

  • added 'job_report' graph, shows running and queued jobs

web/addons/job_monarch/overview.php:

  • included IMG to job_report graph

web/addons/job_monarch/index.php:

  • added range menu
  • fixed metric_menu selection now properly instantly refreshes graphs

web/addons/job_monarch/templates/overview.tpl:

  • added job_report graph
File size: 5.5 KB
Line 
1<BR><BR>
2
3<CENTER>
4<TABLE cellpadding="15">
5<TR>
6
7  <TD>
8
9
10<TABLE ALIGN=CENTER class="overview" cellpadding="5">
11
12<COL id="kol1">
13<COL id="kol2">
14<COL id="kol3">
15<COL id="kol4">
16
17<TR class="overview_header">
18<TD>Batch</TD>
19<TD>Jobs</TD>
20<TD>Nodes</TD>
21<TD>Cpus</TD>
22</TR>
23
24<TR class="overview_line">
25<TD class="blue">
26Capacity
27</TD>
28<TD class="blue">
29</TD>
30<TD class="blue">
31{avail_nodes}
32</TD>
33<TD class="blue">
34{avail_cpus}
35</TD>
36</TR>
37
38
39<TR class="overview">
40<TD class="red">
41Running
42</TD>
43<TD class="red">
44{running_jobs}
45</TD>
46<TD class="red">
47{running_nodes}
48</TD>
49<TD class="red">
50{running_cpus}
51</TD>
52</TR>
53
54<TR class="overview_line">
55<TD class="gray">
56Queued
57</TD>
58<TD class="gray">
59{queued_jobs}
60</TD>
61<TD class="gray">
62{queued_nodes}
63</TD>
64<TD class="gray">
65{queued_cpus}
66</TD>
67</TR>
68
69<TR class="overview">
70<TD class="brown">
71Total
72</TD>
73<TD class="brown">
74{total_jobs}
75</TD>
76<TD class="brown">
77{total_nodes}
78</TD>
79<TD class="brown">
80{total_cpus}
81</TD>
82</TR>
83
84<TR class="overview">
85<TD class="green">
86Free
87</TD>
88<TD class="green">
89</TD>
90<TD class="green">
91{free_nodes}
92</TD>
93<TD class="green">
94{free_cpus}
95</TD>
96</TR>
97
98<TR class="overview" id="selected">
99<TD>
100View
101</TD>
102<TD>
103{view_jobs}
104</TD>
105<TD>
106{view_nodes}
107</TD>
108<TD>
109{view_cpus}
110</TD>
111</TR>
112
113</TABLE>
114
115<BR>
116{rjqj_graph}
117
118  <TD ALIGN="CENTER"><CENTER>
119<!-- INCLUDESCRIPT BLOCK : ci_script -->
120    <IMG SRC="{clusterimage}" USEMAP="#MONARCH_CLUSTER_BIG" BORDER="0">
121    <MAP NAME="MONARCH_CLUSTER_BIG">
122<!-- START BLOCK : node_clustermap -->
123{node_area_map}
124<!-- END BLOCK : node_clustermap -->
125    </MAP>
126    <BR>
127<FONT class="footer">Last updated: {report_time}</FONT></CENTER>
128  </TD>
129
130  </TD>
131  <TD ALIGN="CENTER">
132    <IMG SRC="{pie}">
133  </TD>
134</TR>
135</TABLE>
136
137<BR>
138
139<SCRIPT TYPE="text/javascript" SRC="libtoga.js"></SCRIPT>
140
141<INPUT TYPE="HIDDEN" NAME="sortby" VALUE="{sortby}">
142<INPUT TYPE="HIDDEN" NAME="sortorder" VALUE="{sortorder}">
143<INPUT TYPE="HIDDEN" NAME="c" VALUE="{clustername}">
144<INPUT TYPE="HIDDEN" NAME="queue" VALUE="{f_queue}">
145<INPUT TYPE="HIDDEN" NAME="state" VALUE="{f_state}">
146<INPUT TYPE="HIDDEN" NAME="user" VALUE="{f_user}">
147<INPUT TYPE="HIDDEN" NAME="id" VALUE="{f_id}">
148<INPUT TYPE="HIDDEN" NAME="filterorder" VALUE="{f_order}">
149
150<TABLE WIDTH="100%" CELLPADDING="2" CELLSPACING="2" BORDER=0>
151<TR CLASS="monarch">
152<TH><B><A HREF="#" onClick="setSort( 'id' )" ALT="Jobid" TITLE="Jobid">Id</A></B></TH>
153<TH><B><A HREF="#" onClick="setSort( 'state' )" ALT="State" TITLE="State">S</A></B></TH>
154<TH><B><A HREF="#" onClick="setSort( 'user' )">User</A></B></TH>
155<TH><B><A HREF="#" onClick="setSort( 'queue' )">Queue</A></B></TH>
156<TH><B><A HREF="#" onClick="setSort( 'name' )" ALT="Jobname" TITLE="Jobname">Name</A></B></TH>
157<TH><B><A HREF="#" onClick="setSort( 'req_cpu' )" ALT="Requested CPU Time (walltime)" TITLE="Requested CPU Time (walltime)">Req. CPU time</A></B></TH>
158<!-- START BLOCK : column_header_req_mem -->
159<TH><B><A HREF="#" onClick="setSort( 'req_mem' )" ALT="Requested Memory" TITLE="Requested Memory">Req. Memory</A></B></TH>
160<!-- END BLOCK : column_header_req_mem -->
161<TH><B><A HREF="#" onClick="setSort( 'nodes' )" ALT="Nodes" TITLE="Nodes">N</A>/<A HREF="#" onClick="setSort( 'cpus' )" ALT="Processors" TITLE="Processors">P</A></B></TH>
162<!-- START BLOCK : column_header_queued -->
163<TH><B><A HREF="#" onClick="setSort( 'queued' )">Queued</A></B></TH>
164<!-- END BLOCK : column_header_queued -->
165<!-- START BLOCK : column_header_nodes -->
166<TH><B><A HREF="#" onClick="setSort( 'nodes' )" ALT="Nodes" TITLE="Nodes">Nodes</A></B></TH>
167<!-- END BLOCK : column_header_nodes -->
168<TH><B><A HREF="#" onClick="setSort( 'start' )">Started</A></B></TH>
169<TH><B><A HREF="#" onClick="setSort( 'runningtime' )">Runningtime</A></B></TH>
170</TR>
171
172<!-- START BLOCK : node -->
173  <TR CLASS="{nodeclass}">
174    <TD><A HREF="#" onClick="setFilter( 'id', '{id}' )">{id}</A></TD>
175    <TD><A HREF="#" onClick="setFilter( 'state', '{state}' )" ALT="{fullstate}" TITLE="{fullstate}">{state}</A></TD>
176    <TD><A HREF="#" onClick="setFilter( 'user', '{user}' )">{user}</A></TD>
177    <TD><A HREF="#" onClick="setFilter( 'queue', '{queue}' )">{queue}</A></TD>
178    <TD ALT="{fulljobname}" TITLE="{fulljobname}">
179<!-- START BLOCK : jobname_hint_start -->
180    <FONT CLASS="jobname_hint">
181<!-- END BLOCK : jobname_hint_start -->
182    {name}
183<!-- START BLOCK : jobname_hint_end -->
184    </FONT>
185<!-- END BLOCK : jobname_hint_end -->
186    </TD>
187    <TD>{req_cpu}</TD>
188<!-- START BLOCK : column_req_mem -->
189    <TD>{req_memory}</TD>
190<!-- END BLOCK : column_req_mem -->
191    <TD>{nodes}/{cpus}</TD>
192<!-- START BLOCK : column_queued -->
193    <TD>{queued}</TD>
194<!-- END BLOCK : column_queued -->
195<!-- START BLOCK : column_nodes -->
196    <TD>{nodes_hostnames}</TD>
197<!-- END BLOCK : column_nodes -->
198    <TD>{started}</TD>
199    <TD>{runningtime}</TD>
200  </TR>
201<!-- END BLOCK : node -->
202</TABLE>
203</CENTER>
204
205<!-- START BLOCK : showhosts -->
206<TABLE BORDER="0" WIDTH="100%">
207<TR>
208  <TD CLASS=title COLSPAN="2">
209  <FONT SIZE="-1">
210  Show Hosts:
211  yes<INPUT type=radio name="sh" value="1" OnClick="toga_form.submit();" {checked1}>
212  no<INPUT type=radio name="sh" value="0" OnClick="toga_form.submit();" {checked0}>
213  </FONT>
214  |
215  job <strong>{id}</strong> metric <strong>{metric}</strong>
216  |
217   <FONT SIZE="-1">
218   Columns&nbsp;&nbsp;{cols_menu}
219   </FONT>
220  </TD>
221</TR>
222   
223</TABLE>
224
225<CENTER>
226<TABLE>
227<TR>
228<!-- START BLOCK : sorted_list -->
229{metric_image}{br}
230<!-- END BLOCK : sorted_list -->
231</TR>
232</TABLE>
233
234<p>
235(Nodes colored by 1-minute load) | <A HREF="../../node_legend.html" ALT="Node Image egend">Legend</A>
236
237</CENTER>
238
239<!-- END BLOCK : showhosts -->
Note: See TracBrowser for help on using the repository browser.