Prechádzať zdrojové kódy

promtheus alert hadnler write empty result (#4517)

Yosef Mihretie 2 rokov pred
rodič
commit
b6f6e344b2

+ 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))
 		p.HandleAPIError(w, r, apierrors.NewErrPassThroughToClient(e, http.StatusInternalServerError))
 		return
 		return
 	}
 	}
+	p.WriteResult(w, r, "")
 }
 }
 
 
 func (p *PrometheusAlertWebhookHandler) handlePrometheusAlert(ctx context.Context, projectId, clusterId int64, prometheusAlert *types.PrometheusAlert) error {
 func (p *PrometheusAlertWebhookHandler) handlePrometheusAlert(ctx context.Context, projectId, clusterId int64, prometheusAlert *types.PrometheusAlert) error {