Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortexproject/cortex
/ increaseSeriesForMetric
Method
increaseSeriesForMetric
pkg/ingester/user_state.go:82–87 ·
view source on GitHub ↗
(metric string)
Source
from the content-addressed store, hash-verified
80
}
81
82
func
(m *metricCounter) increaseSeriesForMetric(metric string) {
83
shard := m.getShard(metric)
84
shard.mtx.Lock()
85
shard.m[metric]++
86
shard.mtx.Unlock()
87
}
88
89
type
labelSetCounterEntry
struct
{
90
count int
Callers
2
TestMetricCounter
Function · 0.80
PostCreation
Method · 0.80
Calls
1
getShard
Method · 0.95
Tested by
1
TestMetricCounter
Function · 0.64