Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Fix sentry grpc error threshold bug
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Feb 25, 2022
1 parent 5e994dc commit f1c2669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func getAlertNotification(
case *SentryGRPCError:
sentryName := err.sentry
foundSentryGRPCErrors = append(foundSentryGRPCErrors, sentryName)
if (*alertState)[vm.Name].SentryGRPCErrorCounts[sentryName]%notifyEvery == 0 || (*alertState)[vm.Name].SentryOutOfSyncErrorCounts[sentryName] == sentryGRPCErrorNotifyThreshold {
if (*alertState)[vm.Name].SentryGRPCErrorCounts[sentryName]%notifyEvery == 0 || (*alertState)[vm.Name].SentryGRPCErrorCounts[sentryName] == sentryGRPCErrorNotifyThreshold {
addAlert(err)
if (*alertState)[vm.Name].SentryGRPCErrorCounts[sentryName] >= sentryGRPCErrorNotifyThreshold {
setAlertLevel(alertLevelHigh)
Expand Down

0 comments on commit f1c2669

Please sign in to comment.