瀏覽代碼

promtheus alert hadnler write empty result (#4517)

Yosef Mihretie 2 年之前
父節點
當前提交
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 {