You are managing an application that exposes an HTTP endpoint without using a load balancer.
The latency of the HTTP responses is important for the user experience.
You want to understand what HTTP latencies all of your users are experiencing.
You use Stackdriver Monitoring.
What should you do?
Click on the arrows to vote for the correct answer
A. B. C. D. E. F.A.
To understand the HTTP latencies experienced by users of an application that exposes an HTTP endpoint without using a load balancer, the following steps should be taken using Stackdriver Monitoring:
In your application, create a metric with a metricKind set to CUMULATIVE and a valueType set to DOUBL. This will create a cumulative metric that tracks the total time taken for all HTTP requests since the metric was created, and the value will be a double-precision floating-point number.
Ensure that your application is configured to report this metric to Stackdriver Monitoring using the Stackdriver Monitoring API.
In Stackdriver's Metrics Explorer, use a Line graph to visualize the metric. This will display the HTTP latency as a line graph over time, allowing you to see trends and changes in latency.
By using a cumulative metric with a Line graph, you can track the total HTTP latency experienced by all users over time. This will give you an idea of the overall performance of your application, and help you identify any spikes or trends in latency that may be affecting user experience.
Note: The other answer choices provided do not accurately reflect the best approach to visualize HTTP latencies using Stackdriver Monitoring. Option A creates a delta metric, which tracks changes in the metric value over time rather than the total value. Option B suggests using a stacked bar graph, which is not ideal for visualizing time-series data like HTTP latency. Option E suggests using a heatmap graph with a gauge metric, which is not appropriate for measuring latency. Option F suggests using a stacked area graph with an unspecified metric kind and an integer value type, which is not ideal for measuring latency.