MCPcopy
hub / github.com/prometheus/prometheus / Set

Method Set

util/features/features.go:50–50  ·  view source on GitHub ↗

Set sets a feature to the specified enabled state. The category and name should use snake_case naming convention.

(category, name string, enabled bool)

Source from the content-addressed store, hash-verified

48 // Set sets a feature to the specified enabled state.
49 // The category and name should use snake_case naming convention.
50 Set(category, name string, enabled bool)
51
52 // Get returns a copy of all registered features organized by category.
53 // Returns a map where the keys are category names and values are maps

Callers 15

ResizeMethod · 0.65
computeMetricsMethod · 0.65
InitMethod · 0.65
OpenFunction · 0.65
openFunction · 0.65
ApplyConfigMethod · 0.65
reloadBlocksMethod · 0.65
PopulateBlockMethod · 0.65
NewDirLockerFunction · 0.65
LockMethod · 0.65

Implementers 1

registryutil/features/features.go

Calls

no outgoing calls

Tested by 15

handleOTLPFunction · 0.52
TestOTLPDeltaFunction · 0.52
BenchmarkOTLPFunction · 0.52
TestClientRetryAfterFunction · 0.52
TestReadClientFunction · 0.52