From 8fe0e60208fdc5a0ba19023690e5f99252826b1d Mon Sep 17 00:00:00 2001 From: Srikanth Chekuri Date: Sat, 3 Feb 2024 06:31:10 +0530 Subject: [PATCH] fix: make label compliant with prometheus spec (#4488) --- pkg/query-service/rules/thresholdRule.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/query-service/rules/thresholdRule.go b/pkg/query-service/rules/thresholdRule.go index c13008e040..3ea73a9322 100644 --- a/pkg/query-service/rules/thresholdRule.go +++ b/pkg/query-service/rules/thresholdRule.go @@ -1057,12 +1057,12 @@ func (r *ThresholdRule) Eval(ctx context.Context, ts time.Time, queriers *Querie if r.typ == "TRACES_BASED_ALERT" { link := r.prepareLinksToTraces(ts, smpl.Metric) if link != "" && r.hostFromSource() != "" { - lb.Set("See related traces: ", fmt.Sprintf("%s/traces-explorer?%s", r.hostFromSource(), link)) + lb.Set("RelatedTraces", fmt.Sprintf("%s/traces-explorer?%s", r.hostFromSource(), link)) } } else if r.typ == "LOGS_BASED_ALERT" { link := r.prepareLinksToLogs(ts, smpl.Metric) if link != "" && r.hostFromSource() != "" { - lb.Set("See related logs: ", fmt.Sprintf("%s/logs/logs-explorer?%s", r.hostFromSource(), link)) + lb.Set("RelatedLogs", fmt.Sprintf("%s/logs/logs-explorer?%s", r.hostFromSource(), link)) } }