How to measure time it takes from elasticsearch pod to elasticsearch?

We have a global search functionality that takes time to fetch data from Elasticsearch so we need to measure time it would take from elasticsearch pod to elasticsearch itself. Our technology uses java spring Elasticsearch + elasticsearch. Can somebody share any ideas how to accomplish it?

Perhaps Use Elastic Java APM Agent, it will measure the TPM/txn per min and round trip latency.

This is exactly the type of observability that Elastic APM is good for

1 Like