Skip to content

Commit

Permalink
Fix NDC metrics reporting (#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 authored Jan 23, 2021
1 parent 95c1b5b commit f6225de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/history/replicatorQueueProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ func (p *replicatorQueueProcessorImpl) getTasks(
}

// Note this is a very rough indicator of how much the remote DC is behind on this shard.
p.metricsClient.RecordTimer(
p.metricsClient.Scope(
metrics.ReplicatorQueueProcessorScope,
metrics.TargetClusterTag(pollingCluster),
).RecordTimer(
metrics.ReplicationTasksLag,
time.Duration(p.shard.GetTransferMaxReadLevel()-readLevel),
)
Expand Down

0 comments on commit f6225de

Please sign in to comment.