Search code examples
pythongoogle-cloud-platformmonitoringstackdrivergoogle-cloud-stackdriver

Resource type for using stackdriver logger in python?


I'm currently using stackdriver for cloud logging my python code. I am trying to setup notifications which requires me to specify a resource type but I can't find which resource type I am using?


Solution

  • You can start by going to the resources menu on the left panel of the Stackdriver interface, and click on Metrics Explorer. Once you are in metrics explorer you can start by typing Global, and then scroll up until you see global. From there click on Global under Resource types. This will narrow down the metrics for you to search. Once you find the resource you are trying to monitor, you can then note it and create an alert for it. For more information about Python and Stackdriver check out this link.