MCPcopy Create free account
hub / github.com/cortexproject/cortex / cleanupInactiveUserMetrics

Method cleanupInactiveUserMetrics

pkg/frontend/v1/frontend.go:178–186  ·  view source on GitHub ↗
(user string)

Source from the content-addressed store, hash-verified

176}
177
178func (f *Frontend) cleanupInactiveUserMetrics(user string) {
179 f.queueLength.DeletePartialMatch(prometheus.Labels{
180 "user": user,
181 })
182 f.discardedRequests.DeletePartialMatch(prometheus.Labels{
183 "user": user,
184 })
185 f.requestQueue.CleanupInactiveUserMetrics(user)
186}
187
188// RoundTripGRPC round trips a proto (instead of a HTTP request).
189func (f *Frontend) RoundTripGRPC(ctx context.Context, req *httpgrpc.HTTPRequest) (*httpgrpc.HTTPResponse, error) {

Callers 1

Calls 1

Tested by 1