A comprehensive guide from Simo Ahava.

If you've deployed sGTM on Google Cloud but haven't considered monitoring its performance, here are some life hacks from Simo Ahava. In his article, he discusses the following monitoring methods for your GTM server container in the Cloud Run environment.

Health checks. This monitoring option checks that the Cloud Run service is "healthy," meaning it responds to requests in a timely manner. Include Startup probe and Liveness probe settings.

Billing and budget alerts. Alerts that warn you when approaching a predetermined budget. Configuring the budget amount and setting up the alert actions are required.

Cloud Monitoring. Describes how you can set up alert policies when selected metrics reach a certain level over a specified period. For example, HTTP error messages, CPU utilization threshold, request latency, or average instance count.

Most of these methods are available in the Cloud Run dashboard. You can overlook monitoring only if you manage a project that is not heavily loaded. Otherwise, make sure to set up alerts and regularly check the Cloud Run dashboard.

If you work with GA4 to BigQuery exports, be sure to check out my SQL cheat sheet.