rdhabalia opened a new pull request #8409:
URL: https://github.com/apache/pulsar/pull/8409
### Motivation
`maxMsgReplDelayInSeconds` is useful metrics for replicator n/w monitoring
and we should have it in namespace-metrics for each colo. We have added max
delay across all replication-clusters in #2983 but it will be more useful and
make-sense to add at each colo for monitoring purpose.
### Result
After fix it should appear in namespace-replicator stats
```
./pulsar-admin broker-stats monitoring-metrics -i
{
"metrics": {
"brk_max_replication_delay_second": 0.0,
"brk_repl_is_connected": 1,
"brk_repl_out_rate": 0.03857322653872893,
"brk_repl_out_tp_rate": 0.23143935923237358,
"brk_replication_backlog": 0.0
},
"dimensions": {
"from_cluster": "r1",
"namespace": "pulsar/ns",
"to_cluster": "r3"
}
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]