Show each team's first-token and latency percentiles, errors and refusals

Percentiles are read from the histograms kept with the usage sums and shown
per group on the usage tab and in the people page's panels. Requests refused
by a limit are recorded as 429s against their owner, free of charge, so a team
hitting its limits shows as such. Usage can be grouped by model.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-03 19:50:16 +02:00
1 parent 4454e1322c
commit 9f479b9a70
17 files changed
+418 -29

No files matched your search

+3
View File
@@ -22,6 +22,7 @@ import (
"io/fs"
"net/http"
"slices"
"strconv"
"strings"
"sync"
"time"
@@ -90,6 +91,8 @@ var funcs = template.FuncMap{
return strings.Join(v, ", ")
},
"latency": humanLatency,
"pctile": pctile,
"pct1": func(v float64) string { return strconv.FormatFloat(v, 'f', 1, 64) },
"duration": func(sec int64) string {
return time.Duration(sec * int64(time.Second)).Round(time.Second).String()
},