
Ultimate access to all questions.
To retrieve the count of all requests to endpoints matching /api/alpha/* in Stackdriver logs, what steps should you follow?
(Optional code block if applicable, corrected for syntax/typos):
# Example filter for Stackdriver Logging query
resource.type="gae_app"
logName="projects/[PROJECT_ID]/logs/appengine.googleapis.com%2Frequest_log"
jsonPayload.resource LIKE "/api/alpha/%"
# Example filter for Stackdriver Logging query
resource.type="gae_app"
logName="projects/[PROJECT_ID]/logs/appengine.googleapis.com%2Frequest_log"
jsonPayload.resource LIKE "/api/alpha/%"
What is the correct approach to achieve this?*_
A
Add a Stackdriver counter metric for path:/api/alpha/.
B
Add a Stackdriver counter metric for endpoint:/api/alpha/.
C
Export the logs to Cloud Storage and count lines matching /api/alpha.
D
Export the logs to Cloud Pub/Sub and count lines matching /api/alpha.