From cc4afff8896823f0330bd4a7f842aa8ed83c844d Mon Sep 17 00:00:00 2001 From: Andreas Christou Date: Thu, 12 Dec 2024 23:26:44 +0000 Subject: [PATCH] Graphite: Set `maxDataPoints` based on user value in alerting (#97178) --- pkg/tsdb/graphite/graphite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tsdb/graphite/graphite.go b/pkg/tsdb/graphite/graphite.go index 0464a21121e..fa8b0166ded 100644 --- a/pkg/tsdb/graphite/graphite.go +++ b/pkg/tsdb/graphite/graphite.go @@ -109,7 +109,7 @@ func (s *Service) QueryData(ctx context.Context, req *backend.QueryDataRequest) "from": []string{from}, "until": []string{until}, "format": []string{"json"}, - "maxDataPoints": []string{"500"}, + "maxDataPoints": []string{fmt.Sprintf("%d", q.MaxDataPoints)}, "target": []string{}, }