Skip to content

Commit

Permalink
Merge pull request #35 from v3io/development
Browse files Browse the repository at this point in the history
Development --> Master (v2.8.0-v0.9.0)
  • Loading branch information
gshatz authored Apr 10, 2019
2 parents f2fbe09 + 0585ec9 commit 0de426a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ The Makefile provides several targets:
* You will find a Travis CI configuration in `.travis.yml`.
* See the [Community page](https://prometheus.io/community) for how to reach the Prometheus developers and users on various communication channels.

## V3IO integration
### Configuration Options
* `disableV3ioAggregations` - Prometheus uses v3io-tsdb builtin aggregations by default when possible. To disable this optimization set `disableV3ioAggregations: true` config in your `prometheus.yaml` file.

## Contributing

Refer to [CONTRIBUTING.md](https://github.com/prometheus/prometheus/blob/master/CONTRIBUTING.md)
Expand Down
4 changes: 2 additions & 2 deletions cmd/prometheus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ func main() {
},
// V3io related updates
func(cfg *config.Config) error {
localStorage.SetUseV3ioAggregations(cfg.UseV3ioAggregations)
queryEngine.UseV3ioAggregations = cfg.UseV3ioAggregations
localStorage.SetUseV3ioAggregations(!cfg.DisableV3ioAggregations)
queryEngine.UseV3ioAggregations = !cfg.DisableV3ioAggregations

return nil
},
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ type Config struct {
RemoteWriteConfigs []*RemoteWriteConfig `yaml:"remote_write,omitempty"`
RemoteReadConfigs []*RemoteReadConfig `yaml:"remote_read,omitempty"`

UseV3ioAggregations bool `yaml:"useV3ioAggregations,omitempty"`
DisableV3ioAggregations bool `yaml:"disableV3ioAggregations,omitempty"`

// original is the input from which the config was parsed.
original string
Expand Down

0 comments on commit 0de426a

Please sign in to comment.