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

Method GetLabelNamesByID

server/controller/prometheus/cache/target.go:165–167  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

163}
164
165func (t *target) GetLabelNamesByID(id int) []string {
166 return t.targetIDToLabelNames.Load(id)
167}
168
169func (t *target) Add(batch []*controller.PrometheusTarget) {
170 for _, item := range batch {

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected