From 1fc3b39b9c0f9949603cee3c613ef244db00f0a9 Mon Sep 17 00:00:00 2001 From: kbweave <106193439+kbweave@users.noreply.github.com> Date: Mon, 25 Mar 2024 08:07:34 -0600 Subject: [PATCH] app/vmselect: use GetDeadlineForLabelsAPI for LabelAPI requests (#5992) (cherry picked from commit 70eaa06f08b5684dadfbb72f6910d0ab3c96baa6) --- app/vmselect/prometheus/prometheus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmselect/prometheus/prometheus.go b/app/vmselect/prometheus/prometheus.go index 4d2bfb188..840f772b5 100644 --- a/app/vmselect/prometheus/prometheus.go +++ b/app/vmselect/prometheus/prometheus.go @@ -1241,7 +1241,7 @@ func getCommonParamsForLabelsAPI(r *http.Request, startTime time.Time, requireNo if cp.start == 0 { cp.start = cp.end - defaultStep } - cp.deadline = searchutils.GetDeadlineForExport(r, startTime) + cp.deadline = searchutils.GetDeadlineForLabelsAPI(r, startTime) return cp, nil }