Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion alertmanager/alert_maps.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ func buildPingHealthFuncs() map[AlertName]AlertFunc {
Name_ChainSync: af[Name_ChainSync],
Name_PermanentStorageSpace: af[Name_PermanentStorageSpace],
Name_PDPTaskFailures: af[Name_PDPTaskFailures],
Name_IPNISync: af[Name_IPNISync],
}
}
15 changes: 3 additions & 12 deletions alertmanager/task_alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,18 +206,9 @@ func (a *AlertTask) Do(ctx context.Context, taskID harmonytask.TaskID, stillOwne
if !ok || out == nil || (out.err == nil && out.alertString == "") {
continue
}
// Only say unhealthy if PDP IPNI sync is failing, PoRep provider should not fail health check
if name == Name_IPNISync {
if strings.Contains(out.alertString, "PDP") {
log.Warnf("Ping health check problem: %s %v %s", name, out.err, out.alertString)
detail = fmt.Sprintf("%s: %v %s", name, out.err, out.alertString)
break
}
} else {
log.Warnf("Ping health check problem: %s %v %s", name, out.err, out.alertString)
detail = fmt.Sprintf("%s: %v %s", name, out.err, out.alertString)
break
}
log.Warnf("Ping health check problem: %s %v %s", name, out.err, out.alertString)
detail = fmt.Sprintf("%s: %v %s", name, out.err, out.alertString)
break
}
a.pingMu.Lock()
a.pingProblemDetail = detail
Expand Down
Loading