golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cmd/coordinator/templates/status.html (about)

     1  <!DOCTYPE html>
     2  <!--
     3   Copyright 2022 The Go Authors. All rights reserved.
     4   Use of this source code is governed by a BSD-style
     5   license that can be found in the LICENSE file.
     6  -->
     7  
     8  <html>
     9  <head><link rel="stylesheet" href="/style.css"/><title>Go Farmer</title></head>
    10  <body>
    11  {{template "build-header"}}
    12  
    13  <div class="page">
    14  
    15  <h2>Running</h2>
    16  <p>{{printf "%d" .Total}} total builds; {{printf "%d" .ActiveBuilds}} active ({{.ActiveReverse}} reverse). Uptime {{printf "%s" .Uptime}}. Version {{.Version}}.
    17  
    18  <h2 id=health>Health <a href='#health'>¶</a></h2>
    19  <ul>{{range .HealthCheckers}}
    20      <li><a href="/status/{{.ID}}">{{.Title}}</a>{{if .DocURL}} [<a href="{{.DocURL}}">docs</a>]{{end -}}: {{with .DoCheck.Out}}
    21          <ul>
    22              {{- range .}}
    23                <li>{{ .AsHTML}}</li>
    24              {{- end}}
    25          </ul>
    26          {{else}}ok{{end}}
    27      </li>
    28      {{end}}</ul>
    29  
    30  <h2 id=gomote>Gomote Remote buildlets <a href='#gomote'>¶</a></h2>
    31  {{.GomoteInstances}}
    32  
    33  <h2 id=trybots>Active Trybot Runs <a href='#trybots'>¶</a></h2>
    34  {{- if .TrybotsErr}}
    35    <b>trybots disabled:</b>: {{.TrybotsErr}}
    36  {{else}}
    37      {{.Trybots}}
    38  {{end}}
    39  
    40  <h2 id=sched>Scheduler State <a href='#sched'>¶</a></h2>
    41  <ul>
    42      {{range .SchedState.HostTypes}}
    43        <li><b>{{.HostType}}</b>: {{.Total.Count}} waiting (oldest {{.Total.Oldest}}, newest {{.Total.Newest}}{{if .LastProgress}}, progress {{.LastProgress}}{{end}})
    44            {{if or .Gomote.Count .Try.Count}}<ul>
    45                {{if .Gomote.Count}}<li>gomote: {{.Gomote.Count}} (oldest {{.Gomote.Oldest}}, newest {{.Gomote.Newest}})</li>{{end}}
    46                {{if .Try.Count}}<li>try: {{.Try.Count}} (oldest {{.Try.Oldest}}, newest {{.Try.Newest}})</li>{{end}}
    47            </ul>{{end}}
    48        </li>
    49      {{end}}
    50  </ul>
    51  
    52  <h2 id=pools>Buildlet pools <a href='#pools'>¶</a></h2>
    53  <ul>
    54    <li>{{.GCEPoolStatus}}</li>
    55    <li>{{.EC2PoolStatus}}</li>
    56    <li>{{.ReversePoolStatus}}</li>
    57  </ul>
    58  
    59  <h2 id=active>Active builds <a href='#active'>¶</a></h2>
    60  <ul>
    61      {{range .Active}}
    62        <li><pre>{{.HTMLStatusTruncated}}</pre></li>
    63      {{end}}
    64  </ul>
    65  
    66  <h2 id=pending>Pending builds <a href='#pending'>¶</a></h2>
    67  <ul>
    68      {{range .Pending}}
    69        <li><span>{{.HTMLStatusLine}}</span></li>
    70      {{end}}
    71  </ul>
    72  
    73  <h2 id=completed>Recently completed <a href='#completed'>¶</a></h2>
    74  <ul>
    75      {{range .Recent}}
    76        <li><span>{{.HTMLStatusLine}}</span></li>
    77      {{end}}
    78  </ul>
    79  
    80  <h2 id=disk>Disk Space <a href='#disk'>¶</a></h2>
    81  <pre>{{.DiskFree}}</pre>
    82  
    83  <h2 id=fd>File Descriptors <a href='#fd'>¶</a></h2>
    84  <p>{{.NumFD}}</p>
    85  
    86  </div>
    87  
    88  </body>
    89  </html>