Browse Source

elasticsearch: default interval fix

5s instead of 15s
Marcus Efraimsson 7 years ago
parent
commit
8870e3e85b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/tsdb/elasticsearch/client/client.go

+ 1 - 1
pkg/tsdb/elasticsearch/client/client.go

@@ -106,7 +106,7 @@ func (c *baseClientImpl) GetTimeField() string {
 func (c *baseClientImpl) GetMinInterval(queryInterval string) (time.Duration, error) {
 	return tsdb.GetIntervalFrom(c.ds, simplejson.NewFromAny(map[string]string{
 		"interval": queryInterval,
-	}), 15*time.Second)
+	}), 5*time.Second)
 }
 
 func (c *baseClientImpl) getSettings() *simplejson.Json {