mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-21 05:11:17 +00:00
44 lines
1.6 KiB
HTML
44 lines
1.6 KiB
HTML
|
<table style="border-spacing: 0">
|
||
|
<tr>
|
||
|
<td colspan=1 align=left><b>Span Name</b></td>
|
||
|
<td> | </td><td colspan=1 align="center"><b>Running</b></td>
|
||
|
<td> | </td>
|
||
|
<td colspan=9 align="center"><b>Latency Samples</b></td>
|
||
|
<td> | </td>
|
||
|
<td colspan=1 align="center"><b>Error Samples</b></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan=1></td>
|
||
|
<td> | </td>
|
||
|
<td colspan=1></td>
|
||
|
<td> | </td>
|
||
|
{{range .LatencyBucketNames}}<th colspan=1 align="center"><b>[{{.}}]</b></th>{{end}}
|
||
|
<td> | </td>
|
||
|
<td colspan=1></td>
|
||
|
</tr>
|
||
|
{{$a := .TracesEndpoint}}
|
||
|
{{$links := .Links}}
|
||
|
{{range $rowindex, $row := .Rows}}
|
||
|
{{- $name := .Name}}
|
||
|
{{- if even $rowindex}}<tr style="background: #eee">{{else}}<tr>{{end -}}
|
||
|
<td>{{.Name}}</td><td> | </td>
|
||
|
{{- if $links -}}
|
||
|
<td align="center"><a href="{{$a}}?zspanname={{$name}}&ztype=0">{{.Active}}</a></td>
|
||
|
{{- else -}}
|
||
|
<td>{{.Active}}</td>
|
||
|
{{- end -}}
|
||
|
<td> | </td>
|
||
|
{{- if $links -}}
|
||
|
{{range $index, $value := .Latency}}<td align="center"><a href="{{$a}}?zspanname={{$name}}&ztype=1&zsubtype={{$index}}">{{$value}}</a></td>{{end}}
|
||
|
{{- else -}}
|
||
|
{{range .Latency}}<td>{{.}}</td>{{end}}
|
||
|
{{- end -}}
|
||
|
<td> | </td>
|
||
|
{{- if $links -}}
|
||
|
<td align="center"><a href="{{$a}}?zspanname={{$name}}&ztype=2&zsubtype=0">{{.Errors}}</td>
|
||
|
{{- else -}}
|
||
|
<td>{{.Errors}}</td>
|
||
|
{{- end -}}
|
||
|
</tr>
|
||
|
{{end}}</table>
|