Logging and Metrics#
Now that you have an application running, it’s time to make sure you have visibility into how it’s performing. To do this you want each VM to report it’s logs to the Google Logging tool. The Google Observability Agent is a program that reports Linux log messages and it’s already installed on our VMs. However, it doesn’t have permission to report data yet! After you follow the instructions in this milestone you should see reports of all site activity.
Labs#
In class we’ll enable logging by following the procedures:
We’ll also translate these actions into changes in our Terraform configuration.
Documentation#
When you have logging working post your Terraform configuration along with a screenshot showing Apache logging events.