diff --git a/pkg/usage/http.go b/pkg/usage/http.go index 3a1d3eedc59a4..1fa49c0532c2d 100644 --- a/pkg/usage/http.go +++ b/pkg/usage/http.go @@ -44,6 +44,17 @@ var statsTemplate = template.Must(template.New("stats").Parse(` th { background-color: #f5f5f5; } tr:hover { background-color: #f9f9f9; } .tenant-totals { margin-bottom: 30px; } + .search-box { + padding: 8px; + margin-bottom: 10px; + width: 200px; + font-size: 14px; + border: 1px solid #ddd; + border-radius: 4px; + } + .tenant-row { display: none; } + .tenant-row.visible { display: table-row; } + .tenant-row.top-5 { display: table-row; } @@ -51,6 +62,7 @@ var statsTemplate = template.Must(template.New("stats").Parse(`

Tenant Total Rates

+ @@ -59,8 +71,8 @@ var statsTemplate = template.Must(template.New("stats").Parse(` - {{range .TenantTotals}} - + {{range $index, $tenant := .TenantTotals}} + @@ -95,6 +107,29 @@ var statsTemplate = template.Must(template.New("stats").Parse(`
{{.TenantID}} {{.BytesPS}}/s
{{end}} + + `))