|
|
@ -198,6 +198,7 @@ func (r *AlertingRule) eval(ts model.Time, engine *promql.Engine, externalURLPat |
|
|
|
return model.LabelValue(result) |
|
|
|
return model.LabelValue(result) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
delete(smpl.Metric, model.MetricNameLabel) |
|
|
|
labels := make(model.LabelSet, len(smpl.Metric)+len(r.labels)+1) |
|
|
|
labels := make(model.LabelSet, len(smpl.Metric)+len(r.labels)+1) |
|
|
|
for ln, lv := range smpl.Metric { |
|
|
|
for ln, lv := range smpl.Metric { |
|
|
|
labels[ln] = lv |
|
|
|
labels[ln] = lv |
|
|
@ -219,8 +220,6 @@ func (r *AlertingRule) eval(ts model.Time, engine *promql.Engine, externalURLPat |
|
|
|
continue |
|
|
|
continue |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
delete(smpl.Metric, model.MetricNameLabel) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
r.active[fp] = &Alert{ |
|
|
|
r.active[fp] = &Alert{ |
|
|
|
Labels: labels, |
|
|
|
Labels: labels, |
|
|
|
Annotations: annotations, |
|
|
|
Annotations: annotations, |
|
|
|