Commit d009c6b9 by utkarshcmu

Log bad alert config

parent 942de549
...@@ -104,6 +104,7 @@ func (e *DashAlertExtractor) GetAlerts() ([]*m.Alert, error) { ...@@ -104,6 +104,7 @@ func (e *DashAlertExtractor) GetAlerts() ([]*m.Alert, error) {
panelQuery := findPanelQueryByRefId(panel, queryRefId) panelQuery := findPanelQueryByRefId(panel, queryRefId)
if panelQuery == nil { if panelQuery == nil {
e.log.Error("Query not found", "panel", alert.PanelId, "queryRefId", queryRefId)
return nil, ValidationError{Reason: "Alert refers to query that cannot be found"} return nil, ValidationError{Reason: "Alert refers to query that cannot be found"}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment