prometheus-nats-exporter icon indicating copy to clipboard operation
prometheus-nats-exporter copied to clipboard

Support RTT metrics

Open Takashi-kun opened this issue 6 years ago • 3 comments

Is it possible to get RTT ? Or would you tell me the other way to get data like it ?

Takashi-kun avatar Aug 16 '18 10:08 Takashi-kun

@Takashi-kun , Thank you for using NATS. Can you describe in more detail about you are asking for? RTT between routes, or between a client and server?

We have a latency testing framework that will give you RTT on a client connection to a server, along with latency metrics. You can find that here: https://github.com/nats-io/latency-tests

ColinSullivan1 avatar Aug 20 '18 17:08 ColinSullivan1

@ColinSullivan1 Thank you for replying.

between routes, or between a client and server

I'm looking for client and server one, In depth I want to collect PING/PONG latency with NATS server. (e.g. https://github.com/nats-io/gnatsd/commit/f9f78a2b55a2fcf57a11005208857a96c3726014) If possible I want messages latency between routes(if possible)

I hope to collect these metrics and monitoring by Prometheus, so would you have any roadmap to implement in prometheus-nats-exporter ?

Takashi-kun avatar Aug 21 '18 03:08 Takashi-kun

This would be very useful to detect network and buffering/queuing delays. It's possible to have low amount of pending messages/data but high buffering/queuing delay. By measuring RTT it's possible to detect this.

rigtorp avatar May 28 '19 17:05 rigtorp