@@ -67,6 +67,7 @@ func (c *QueryCondition) Eval(context *alerting.EvalContext) (*alerting.Conditio
matches = append(matches, &alerting.EvalMatch{
Metric: series.Name,
Value: reducedValue,
+ Tags: series.Tags,
})
}
@@ -51,8 +51,9 @@ type QueryResult struct {
type TimeSeries struct {
- Name string `json:"name"`
- Points TimeSeriesPoints `json:"points"`
+ Name string `json:"name"`
+ Points TimeSeriesPoints `json:"points"`
+ Tags map[string]string `json:"tags"`
type TimePoint [2]null.Float