Skip to content

Commit

Permalink
set MaxSamples=50000000 (default in prometheus)
Browse files Browse the repository at this point in the history
  • Loading branch information
lomik committed Jul 13, 2019
1 parent f1df8b8 commit 2611ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type Handler struct {
func NewHandler(config *config.Config) *Handler {
h := &Handler{
config: config,
queryEngine: promql.NewEngine(promql.EngineOpts{MaxConcurrent: 100, MaxSamples: 1000000, Timeout: time.Minute}),
queryEngine: promql.NewEngine(promql.EngineOpts{MaxConcurrent: 100, MaxSamples: 50000000, Timeout: time.Minute}),
}

apiV1 := v1.NewAPI(
Expand Down

0 comments on commit 2611ade

Please sign in to comment.