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

Method Rate

pkg/util/math/rate.go:30–34  ·  view source on GitHub ↗

Rate returns the per-second rate.

()

Source from the content-addressed store, hash-verified

28
29// Rate returns the per-second rate.
30func (r *EwmaRate) Rate() float64 {
31 r.mutex.RLock()
32 defer r.mutex.RUnlock()
33 return r.lastRate
34}
35
36// Tick assumes to be called every r.interval.
37func (r *EwmaRate) Tick() {

Callers 6

NewFunction · 0.80
PushMethod · 0.80
newIngesterMetricsFunction · 0.80
PushMethod · 0.80
createUserStatsFunction · 0.80
TestRateFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestRateFunction · 0.64