Files
Koenraad VerheydenandGitHub c7e1c3bc52 Add HTML pages to view tenants with overrides (#3332)
* Add HTML pages to view tenants with overrides

* Update CHANGELOG.md

* Update docs

* Linting and fmt

* Clean

* Simplify (?) HTTP handlers, remove handlers from Interface

* Address review comments

* Specify source of runtime overrides
2024-02-01 16:53:20 +01:00

31 lines
818 B
Go Template

{{- /*gotype: github.com/grafana/tempo/modules/overrides.tenantsPageContents*/ -}}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Overrides: tenants</title>
</head>
<body>
<h1>Overrides: tenants</h1>
<p>Current time: {{ .Now }}</p>
<table border="1" cellpadding="5" style="border-collapse: collapse">
<thead>
<tr>
<th>Tenant</th>
<th>Runtime overrides</th>
<th>User-configurable overrides</th>
</tr>
</thead>
<tbody style="font-family: monospace;">
{{ range .Tenants }}
<tr>
<td><a href="overrides/{{ .Name }}">{{ .Name }}</a></td>
<td>{{ if .HasRuntimeOverrides }}x{{ end }}</td>
<td>{{ if .HasUserConfigurableOverrides }}x{{ end }}</td>
</tr>
{{ end }}
</tbody>
</table>
</body>
</html>