| 89 | } |
| 90 | |
| 91 | type ruleLimits struct { |
| 92 | mtx sync.RWMutex |
| 93 | tenantShard float64 |
| 94 | maxRulesPerRuleGroup int |
| 95 | maxRuleGroups int |
| 96 | disabledRuleGroups validation.DisabledRuleGroups |
| 97 | maxQueryLength time.Duration |
| 98 | queryOffset time.Duration |
| 99 | externalLabels labels.Labels |
| 100 | } |
| 101 | |
| 102 | func (r *ruleLimits) setRulerExternalLabels(lset labels.Labels) { |
| 103 | r.mtx.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected