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.
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.