feat(alerting): added validation that checks valid data source and checks for template variables in graphite query, #5841

This commit is contained in:
Torkel Ödegaard
2016-08-18 09:03:46 +02:00
parent eabba50bbf
commit 75a6c2b612
5 changed files with 63 additions and 9 deletions

View File

@@ -87,7 +87,6 @@ func HandleAlertsQuery(query *m.GetAlertsQuery) error {
sql.WriteString(")")
}
sqlog.Error(sql.String(), "params", params)
alerts := make([]*m.Alert, 0)
if err := x.Sql(sql.String(), params...).Find(&alerts); err != nil {
return err