MCPcopy Create free account
hub / github.com/deepflowio/deepflow / NewLabelKey

Function NewLabelKey

server/controller/prometheus/cache/label.go:38–43  ·  view source on GitHub ↗
(name, value string)

Source from the content-addressed store, hash-verified

36}
37
38func NewLabelKey(name, value string) LabelKey {
39 return LabelKey{
40 Name: name,
41 Value: value,
42 }
43}
44
45// IDLabelKey is the internal int-based key used for compact map storage.
46// Avoids storing millions of duplicate string objects in memory.

Calls

no outgoing calls