Stackdriver Monitoring for App Engine - Metric for Tracking Connections

Metric for Tracking Connections

Question

You support an application running on App Engine.

The application is used globally and accessed from various device types.

You want to know the number of connections.

You are using Stackdriver Monitoring for App Engine.

What metric should you use?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

https://cloud.google.com/monitoring/api/metrics_gcp

The metric that should be used to determine the number of connections for an application running on App Engine is tcp_ssl_proxy/open_connections.

Explanation:

  1. The metric flex/connections/current measures the current number of connections to an instance in the App Engine Flexible Environment. This metric is not relevant for the standard environment, which is typically used for serving web applications that are accessed globally from various device types.

  2. The metric tcp_ssl_proxy/new_connections measures the rate at which new TCP connections are established by the SSL proxy. This metric is not relevant for measuring the total number of connections to the application.

  3. The metric tcp_ssl_proxy/open_connections measures the number of open TCP connections that are currently being served by the SSL proxy. This metric is relevant for measuring the total number of connections to the application, regardless of the device type or geographic location of the user.

  4. The metric flex/instance/connections/current measures the number of connections to the instance in the App Engine Flexible Environment. This metric is not relevant for measuring the total number of connections to the application.

Therefore, the correct answer is C. tcp_ssl_proxy/open_connections.