Skip to content

Commit 587cc42

Browse files
refactor: use total_data_loss metric to track the data loss
1 parent 08dcc1a commit 587cc42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func shutDownServer(ctx context.Context, cancel context.CancelFunc, httpServices
7171
eventCountInChannel += len(req.Events)
7272
}
7373
logger.Info(fmt.Sprintf("number of events dropped during the shutdown %d", eventCountInChannel+eventsInProducer))
74-
metrics.Count("shutdown_event_drops", eventCountInChannel+eventsInProducer, "")
74+
metrics.Count("total_data_loss", eventCountInChannel+eventsInProducer, "reason=shutdown")
7575
logger.Info("Exiting server")
7676
shutdown <- true
7777
default:

0 commit comments

Comments
 (0)