mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-05 21:57:09 +02:00
chore: fix some comments
Signed-off-by: tongjicoder <tongjicoder@icloud.com>
This commit is contained in:
parent
317acb3d68
commit
4fe20fa340
@ -3658,7 +3658,7 @@ func btos(b bool) float64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// changesSchema returns true whether the op operation changes the semantic meaning or
|
// changesMetricSchema returns true whether the op operation changes the semantic meaning or
|
||||||
// schema of the metric.
|
// schema of the metric.
|
||||||
func changesMetricSchema(op parser.ItemType) bool {
|
func changesMetricSchema(op parser.ItemType) bool {
|
||||||
switch op {
|
switch op {
|
||||||
|
@ -485,7 +485,7 @@ type ConcurrentRules []int
|
|||||||
// Its purpose is to bound the amount of concurrency in rule evaluations to avoid overwhelming the Prometheus
|
// Its purpose is to bound the amount of concurrency in rule evaluations to avoid overwhelming the Prometheus
|
||||||
// server with additional query load. Concurrency is controlled globally, not on a per-group basis.
|
// server with additional query load. Concurrency is controlled globally, not on a per-group basis.
|
||||||
type RuleConcurrencyController interface {
|
type RuleConcurrencyController interface {
|
||||||
// SplitGroupIntoBatches returns an ordered slice of of ConcurrentRules, which are batches of rules that can be evaluated concurrently.
|
// SplitGroupIntoBatches returns an ordered slice of ConcurrentRules, which are batches of rules that can be evaluated concurrently.
|
||||||
// The rules are represented by their index from the input rule group.
|
// The rules are represented by their index from the input rule group.
|
||||||
SplitGroupIntoBatches(ctx context.Context, group *Group) []ConcurrentRules
|
SplitGroupIntoBatches(ctx context.Context, group *Group) []ConcurrentRules
|
||||||
|
|
||||||
|
@ -429,7 +429,7 @@ Licensed under the MIT license.
|
|||||||
//
|
//
|
||||||
// Each position after the first receives a clone of the original element.
|
// Each position after the first receives a clone of the original element.
|
||||||
//
|
//
|
||||||
// The idea is that that the width, height, and general 'identity' of the
|
// The idea is that the width, height, and general 'identity' of the
|
||||||
// text is constant no matter where it is placed; the placements are a
|
// text is constant no matter where it is placed; the placements are a
|
||||||
// secondary property.
|
// secondary property.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user