Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortexproject/cortex
/ currentStats
Method
currentStats
pkg/alertmanager/alertmanager.go:828–833 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
826
}
827
828
func
(a *alertsLimiter) currentStats() (count, totalSize int) {
829
a.mx.Lock()
830
defer
a.mx.Unlock()
831
832
return
a.count, a.totalSize
833
}
834
835
func
alertSize(alert model.Alert) int {
836
size := 0
Callers
2
newAlertsLimiter
Function · 0.95
testLimiter
Function · 0.80
Calls
no outgoing calls
Tested by
1
testLimiter
Function · 0.64