From c98b00c3024fde404af1d7772fc7cec62ec04c83 Mon Sep 17 00:00:00 2001 From: Brian Gann Date: Tue, 12 Feb 2019 23:52:26 -0600 Subject: [PATCH] allow 90 percent of alertTimeout for rendering to complete vs 50 percent --- pkg/services/alerting/notifier.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/services/alerting/notifier.go b/pkg/services/alerting/notifier.go index e1a550d48f4..59d459f122e 100644 --- a/pkg/services/alerting/notifier.go +++ b/pkg/services/alerting/notifier.go @@ -3,6 +3,7 @@ package alerting import ( "errors" "fmt" + "time" "github.com/grafana/grafana/pkg/bus" "github.com/grafana/grafana/pkg/components/imguploader" @@ -126,7 +127,7 @@ func (n *notificationService) uploadImage(context *EvalContext) (err error) { renderOpts := rendering.Opts{ Width: 1000, Height: 500, - Timeout: alertTimeout / 2, + Timeout: time.Duration(float64(alertTimeout) * 0.9), OrgId: context.Rule.OrgId, OrgRole: m.ROLE_ADMIN, ConcurrentLimit: setting.AlertingRenderLimit,