MCPcopy
hub / github.com/prometheus/prometheus / concurrentRuleEvalController

Struct concurrentRuleEvalController

rules/manager.go:542–544  ·  view source on GitHub ↗

concurrentRuleEvalController holds a weighted semaphore which controls the concurrent evaluation of rules.

Source from the content-addressed store, hash-verified

540
541// concurrentRuleEvalController holds a weighted semaphore which controls the concurrent evaluation of rules.
542type concurrentRuleEvalController struct {
543 sema *semaphore.Weighted
544}
545
546func newRuleConcurrencyController(maxConcurrency int64) RuleConcurrencyController {
547 return &concurrentRuleEvalController{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected