mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
loki: alerting: simplified config (#42147)
* loki: alerting: simplified config * adjusted config handling
This commit is contained in:
parent
eaf46600c4
commit
fe84454bb0
@ -141,10 +141,12 @@ func (s *Service) QueryData(ctx context.Context, req *backend.QueryDataRequest)
|
||||
span.SetTag("stop_unixnano", query.End.UnixNano())
|
||||
defer span.Finish()
|
||||
|
||||
//Currently hard coded as not used - applies to log queries
|
||||
limit := 1000
|
||||
//Currently hard coded as not used - applies to queries which produce a stream response
|
||||
interval := time.Second * 1
|
||||
// `limit` only applies to log-producing queries, and we
|
||||
// currently only support metric queries, so this can be set to any value.
|
||||
limit := 1
|
||||
|
||||
// we do not use `interval`, so we set it to zero
|
||||
interval := time.Duration(0)
|
||||
|
||||
value, err := client.QueryRange(query.Expr, limit, query.Start, query.End, logproto.BACKWARD, query.Step, interval, false)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user