<p>I have a simple java based application deployed in Kubernetes. I want to get the average latency of requests sent to the application(GET and POST). </p>

<p><a href="https://cloud.google.com/monitoring/api/metrics_gcp#gcp-loadbalancing" rel="nofollow noreferrer">Stackdriver Monitoring API</a> has the latency details of loadbalancer. But that can only be collected after 210 seconds which is not sufficient in my case. How can I configure in Kubernetes to get the latency details every 30 seconds (or 1 minute) <strong>immediately</strong>.</p>

<p>I wish the solution to be independent of Java so that I can use it for any application I deploy.</p>

anushiya-thevapalan
<p>On GKE, you can use <a href="https://cloud.google.com/trace/docs/setup/java" rel="nofollow noreferrer">Stackdriver Trace</a>, which is GCP specific. I am currently fighting with python client library. Hopefully Java is more mature.</p>

<p>Or you can use <a href="https://www.jaegertracing.io/" rel="nofollow noreferrer">Jaeger</a>, which is CNCF project.</p>
