|
|
|
|
@ -268,8 +268,8 @@ func (r *AlertingRule) forStateSample(alert *Alert, ts time.Time, v float64) pro |
|
|
|
|
return s |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// QueryforStateSeries returns the series for ALERTS_FOR_STATE of the alert rule.
|
|
|
|
|
func (r *AlertingRule) QueryforStateSeries(ctx context.Context, q storage.Querier) (storage.SeriesSet, error) { |
|
|
|
|
// QueryForStateSeries returns the series for ALERTS_FOR_STATE of the alert rule.
|
|
|
|
|
func (r *AlertingRule) QueryForStateSeries(ctx context.Context, q storage.Querier) (storage.SeriesSet, error) { |
|
|
|
|
// We use a sample to ease the building of matchers.
|
|
|
|
|
// Don't provide an alert as we want matchers that match all series for the alert rule.
|
|
|
|
|
smpl := r.forStateSample(nil, time.Now(), 0) |
|
|
|
|
|