I know the consul rtt command to check latency between two nodes, like consul rtt node1 node2.
Its possible verify rtt between nodes with api calls? How I can do that?
If I have two services running in different nodes, I want check the latency and use the node with lower latency.