Просмотр исходного кода

promtheus alert hadnler write empty result (#4517)

Yosef Mihretie 2 лет назад
Родитель
Сommit
b6f6e344b2
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      api/server/handlers/webhook/prometheus_incoming.go

+ 1 - 0
api/server/handlers/webhook/prometheus_incoming.go

@@ -65,6 +65,7 @@ func (p *PrometheusAlertWebhookHandler) ServeHTTP(w http.ResponseWriter, r *http
 		p.HandleAPIError(w, r, apierrors.NewErrPassThroughToClient(e, http.StatusInternalServerError))
 		return
 	}
+	p.WriteResult(w, r, "")
 }
 
 func (p *PrometheusAlertWebhookHandler) handlePrometheusAlert(ctx context.Context, projectId, clusterId int64, prometheusAlert *types.PrometheusAlert) error {