Best way to monitor google cloud function by stackdriver?

732 views
Skip to first unread message

Ondřej Fuchs

unread,
Jun 20, 2019, 8:35:57 AM6/20/19
to Google Stackdriver Discussion Forum
Hi, 
what is the best way to monitor Google Cloud Function? I use my google function (python script) to trigger Create new object in Google Storage. This function create index to my database and I need to know if function faild -> and make some stackdriver alert (for example sending email to me). 

Thanks a lot for your suggestion.
Ondřej Fuchs

Igor Peshansky

unread,
Jun 20, 2019, 12:15:31 PM6/20/19
to Ondřej Fuchs, Google Stackdriver Discussion Forum
Hi, Ondřej,

Have you had a chance to review the Monitoring Cloud Functions documentation page (https://cloud.google.com/functions/docs/monitoring/)? The kind of notifications you're looking for can be accomplished via Error Reporting, or using one of the built-in Cloud Functions metrics, or logging your error and using Logs-based Metrics. There are also a bunch of (non-Google) tutorials online on how to monitor Cloud Functions with Stackdriver. Which of these is "best" depends heavily on your use case — how you plan to track your errors, whether you care about individual errors or a spike in error rate, how fast do you want to respond to an error, etc.

Hope this helps,
        Igor

--
© 2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Stackdriver Discussion Google Group (google-stackdr...@googlegroups.com) to participate in discussions with other members of the GoogleStackdriver community.
---
You received this message because you are subscribed to the Google Groups "Google Stackdriver Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-stackdriver-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-stackdriver-discussion/af42f1a3-0bba-4253-a847-e9cb95472c46%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages