Viewing metrics in the console
You can view your Cloud Functions with their execution times, execution counts, and memory usage in the GCP Console. These metrics are also available in Stackdriver Monitoring, where you can set up custom alerting on these metrics. See the Stackdriver Monitoring documentation for more information.
You can view the metrics for API calls in the API overview page of the GCP Console.
Finally, you can view the quota metrics for both API calls and function
execution in the API quotas page
of the GCP Console. You can set up alerting on quota errors in
Stackdriver Monitoring by filtering executions that have an “out of quota”
value for the
STATUS metric label. See Introduction to Alerting
for more information.