Skip to content

Commit

Permalink
Merge branch 'feature/prometheus-basic-metrics' of https://github.com…
Browse files Browse the repository at this point in the history
…/cosminrentea/gobbler into feature/prometheus-basic-metrics
  • Loading branch information
Marian Craciunescu committed Mar 17, 2017
2 parents 8669ffb + b27b13a commit 4c836b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/apns/apns.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func (a *apns) HandleResponse(request connector.Request, responseIface interface
if r.Sent() {
logger.WithField("id", r.ApnsID).Info("APNS notification was successfully sent")
mTotalSentMessages.Add(1)
pSentMessages.Inc()
if *a.IntervalMetrics && metadata != nil {
addToLatenciesAndCountsMaps(currentTotalMessagesLatenciesKey, currentTotalMessagesKey, metadata.Latency)
}
Expand Down

0 comments on commit 4c836b7

Please sign in to comment.