update prometheus dependencies (#5520)
Signed-off-by: junot <junotxiang@kubesphere.io>
This commit is contained in:
@@ -855,7 +855,7 @@ func parseToPrometheusRule(rule *v2alpha1.PostableAlertingRule) *promresourcesv1
|
||||
return &promresourcesv1.Rule{
|
||||
Alert: rule.Name,
|
||||
Expr: intstr.FromString(rule.Query),
|
||||
For: rule.Duration,
|
||||
For: promresourcesv1.Duration(rule.Duration),
|
||||
Labels: rule.Labels,
|
||||
Annotations: rule.Annotations,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user