MCPcopy Index your code
hub / github.com/cortexproject/cortex / AllUserStatsHandler

Method AllUserStatsHandler

pkg/ingester/ingester.go:2349–2353  ·  view source on GitHub ↗

AllUserStatsHandler shows stats for all users.

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

2347
2348// AllUserStatsHandler shows stats for all users.
2349func (i *Ingester) AllUserStatsHandler(w http.ResponseWriter, r *http.Request) {
2350 stats := i.userStats()
2351
2352 AllUserStatsRender(w, r, stats, 0, 0)
2353}
2354
2355// AllUserStats returns ingestion statistics for all users known to this ingester.
2356func (i *Ingester) AllUserStats(_ context.Context, _ *client.UserStatsRequest) (*client.UsersStatsResponse, error) {

Callers

nothing calls this directly

Implementers 1

Ingesterpkg/ingester/ingester.go

Calls 2

userStatsMethod · 0.95
AllUserStatsRenderFunction · 0.85

Tested by

no test coverage detected