Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Google Error Reorting Samples Samples

This section contains samples for Google Cloud Error Reporting.

A startup script has been provided to demonstrated how to properly provision a GCE instance with fluentd configured. Note the intallation of fluentd, the addition of the config file, and the restarting of the fluetnd service. You can start an instance using it like this:

gcloud compute instances create example-instance --metadata-from-file startup-script=startup_script.sh

or simply use it as reference when creating your own instance.

After fluentd is configured, main.py could be used to simulate an error:

gcloud compute copy-files main.py example-instance:~/main.py

Then,

gcloud compute ssh example-instance
python ~/main.py

And you will see the message in the Errors Console.

These samples are used on the following documentation page:

https://cloud.google.com/error-reporting/docs/setting-up-on-compute-engine

Morty Proxy This is a proxified and sanitized view of the page, visit original site.