Update exported status metric to properly reflect alerting status of a monitor
It was using the result of the individual check and not the monitor as a whole
This commit is contained in:
@@ -33,7 +33,7 @@ func checkMonitors(config *Config) error {
|
||||
hasAlert := alertNotice != nil
|
||||
|
||||
// Track status metrics
|
||||
Metrics.SetMonitorStatus(monitor.Name, success)
|
||||
Metrics.SetMonitorStatus(monitor.Name, monitor.IsUp())
|
||||
Metrics.CountCheck(monitor.Name, success, hasAlert)
|
||||
|
||||
// Should probably consider refactoring everything below here
|
||||
|
||||
Reference in New Issue
Block a user