I would like to write debug information in my DM templates, but I cannot see nor find a way to generate print statements, logs, or anything to aid in debugging when something goes wrong with my template.
How do I add print or logging to deployment manager?
Look in Stackdriver -> Logs Viewer -> Cloud Run Revision. Select All logs. Your print() should appear there.
View Monitoring data For information on the details panel, see View resource details. View in Monitoring: opens to a Monitoring page for the resource. View in GKE or View in Compute Engine: opens the Details page for the resource within the GKE or Compute Engine user interface.
I checked, currently the only way to troubleshoot is to rely on the expanded template from the Deployment Manager Dashboard. You can check it in the following URL for a given deployment, but I guess you were already aware of this possibility:
However a feature request has been opened and currently the engineering team is working and discussing the best way to provide to the customers this possibility.
I advise you to star the feature request in order to get updates via email and to place a comment in order to show the interest of the community. All the official communication regarding that feature will be posted there.
Disclaimer: I work for Google Cloud Platform Support
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With