linkedin / ambry

Distributed object store
https://github.com/linkedin/ambry/wiki
Apache License 2.0
1.74k stars 275 forks source link

[vcr-2.0] Fix lag metric #2889

Closed snalli closed 1 day ago

snalli commented 4 days ago

Initializing the lag metric to Long.MAX emits a high value initiailly. Although this eventually goes down as replication starts, it skews the graph upon each deployment.

The fix is to create and emit the metric only when it is set. Until then, the metric doesn't exist.