Files
renovate-sh-app[bot]GitHubrenovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>A. Stoewer
92ce383d0e fix(deps): update github.com/grafana/dskit digest to 10fce42 (#5749)
* fix(deps): update github.com/grafana/dskit digest to 10fce42

Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>

* make generate-manifest

---------

Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
Co-authored-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
Co-authored-by: A. Stoewer <[email protected]>
2025-10-28 08:29:23 +10:00

100 lines
3.2 KiB
Go Template

{{- /*gotype: github.com/grafana/dskit/ring.httpResponse */ -}}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Ring Status</title>
</head>
<body>
<h1>Ring Status</h1>
<p>Current time: {{ .Now }}</p>
<form action="" method="POST">
<input type="hidden" name="csrf_token" value="$__CSRF_TOKEN_PLACEHOLDER__">
<table width="100%" border="1">
<thead>
<tr>
<th>Instance ID</th>
<th>Availability Zone</th>
<th>State</th>
<th>Address</th>
<th>Registered At</th>
<th>Read-Only</th>
<th>Read-Only Updated</th>
<th>Last Heartbeat</th>
{{ if not .Config.HideTokensUIElements }}
<th>Tokens</th>
<th>Ownership</th>
{{ end }}
{{ if .Config.ShowVersions }}
<th>Versions</th>
{{ end }}
<th>Actions</th>
</tr>
</thead>
<tbody>
{{ range $i, $ing := .Ingesters }}
{{ if mod $i 2 }}
<tr>
{{ else }}
<tr bgcolor="#BEBEBE">
{{ end }}
<td>{{ .ID }}</td>
<td>{{ .Zone }}</td>
<td>{{ .State }}</td>
<td>{{ .Address }}</td>
<td>{{ .RegisteredTimestamp | timeOrEmptyString }}</td>
{{ if .ReadOnly }}
<td>{{ .ReadOnly }}</td>
<td>{{ .ReadOnlyUpdatedTimestamp | durationSince }} ago ({{ .ReadOnlyUpdatedTimestamp.Format "15:04:05.999" }})</td>
{{ else }}
<td></td>
<td>{{ .ReadOnlyUpdatedTimestamp | timeOrEmptyString }}</td>
{{ end }}
<td>{{ .HeartbeatTimestamp | durationSince }} ago ({{ .HeartbeatTimestamp.Format "15:04:05.999" }})</td>
{{ if not $.Config.HideTokensUIElements }}
<td>{{ .NumTokens }}</td>
<td>{{ .Ownership | humanFloat }}%</td>
{{ end }}
{{ if $.Config.ShowVersions }}
<td>
{{ range $k, $v := .Versions }}
{{ with $componentName := index $.Config.ComponentNames $k }}
{{ $k }} ({{ $componentName }}): v{{ $v }}<br/>
{{ else }}
{{ $k }}: v{{ $v }}<br/>
{{ end }}
{{ end }}
</td>
{{ end }}
<td>
<button name="forget" value="{{ .ID }}" type="submit">Forget</button>
</td>
</tr>
{{ end }}
</tbody>
</table>
<br>
{{ if not .Config.HideTokensUIElements }}
{{ if .TokensToggledOn }}
<input type="button" value="Hide Tokens" onclick="window.location.href = '?tokens=false' "/>
{{ else }}
<input type="button" value="Show Tokens" onclick="window.location.href = '?tokens=true'"/>
{{ end }}
{{ if .TokensToggledOn }}
{{ range $i, $ing := .Ingesters }}
<h2>Instance: {{ .ID }}</h2>
<p>
Tokens:<br/>
{{ range $token := .Tokens }}
{{ $token }}
{{ end }}
</p>
{{ end }}
{{ end }}
{{ end }}
</form>
</body>
</html>