Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit af7ed0d

Browse files
authored
Merge pull request #43 from v3io/development
disable v3io aggregations by default + changea query log to info (#42)
2 parents e25bd68 + 5803d0a commit af7ed0d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cmd/prometheus/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,8 @@ func main() {
447447
},
448448
// V3io related updates
449449
func(cfg *config.Config) error {
450-
localStorage.SetUseV3ioAggregations(!cfg.DisableV3ioAggregations)
451-
queryEngine.UseV3ioAggregations = !cfg.DisableV3ioAggregations
450+
localStorage.SetUseV3ioAggregations(cfg.UseV3ioAggregations)
451+
queryEngine.UseV3ioAggregations = cfg.UseV3ioAggregations
452452

453453
return nil
454454
},

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ type Config struct {
135135
RemoteWriteConfigs []*RemoteWriteConfig `yaml:"remote_write,omitempty"`
136136
RemoteReadConfigs []*RemoteReadConfig `yaml:"remote_read,omitempty"`
137137

138-
DisableV3ioAggregations bool `yaml:"disableV3ioAggregations,omitempty"`
138+
UseV3ioAggregations bool `yaml:"useV3ioAggregations,omitempty"`
139139

140140
// original is the input from which the config was parsed.
141141
original string

promql/engine.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ func (ng *Engine) populateSeries(ctx context.Context, q storage.Queryable, s *Ev
587587
params.End = params.End - offsetMilliseconds
588588
}
589589

590-
level.Debug(ng.logger).Log("msg", "Querying v3io vector selector",
590+
level.Info(ng.logger).Log("msg", "Querying v3io vector selector",
591591
"useV3ioAggregations", querier.(*tsdb.V3ioPromQuerier).UseAggregates,
592592
"use3ioAggregationConfig", querier.(*tsdb.V3ioPromQuerier).UseAggregatesConfig)
593593
set, wrn, err = querier.Select(params, n.LabelMatchers...)
@@ -610,7 +610,7 @@ func (ng *Engine) populateSeries(ctx context.Context, q storage.Queryable, s *Ev
610610
params.End = params.End - offsetMilliseconds
611611
}
612612

613-
level.Debug(ng.logger).Log("msg", "Querying v3io matrix selector",
613+
level.Info(ng.logger).Log("msg", "Querying v3io matrix selector",
614614
"useV3ioAggregations", querier.(*tsdb.V3ioPromQuerier).UseAggregates,
615615
"use3ioAggregationConfig", querier.(*tsdb.V3ioPromQuerier).UseAggregatesConfig)
616616
set, wrn, err = querier.Select(params, n.LabelMatchers...)

0 commit comments

Comments
 (0)