MCPcopy Index your code
hub / github.com/coder/coder / newLabelAggregator

Function newLabelAggregator

coderd/prometheusmetrics/aggregator.go:232–237  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

230}
231
232func newLabelAggregator(size int) *labelAggregator {
233 return &labelAggregator{
234 aggregations: make(map[string]float64, size),
235 metrics: make(map[string]annotatedMetric, size),
236 }
237}
238
239func (a *labelAggregator) aggregate(am annotatedMetric, labels []string) error {
240 // Use a LabelSet because it can give deterministic fingerprints of label combinations regardless of map ordering.

Callers 1

RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected