0% found this document useful (0 votes)
3 views1 page

Install Google Cloud Monitoring Agents

The document provides a step-by-step guide to install and configure the Stackdriver monitoring and logging agents on a Google Cloud Engine instance. It includes commands to download and execute scripts for adding the necessary repositories, updating the package list, and installing the agents. Additionally, it shows how to configure the Stackdriver agent for Apache logging by downloading a specific configuration file.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Install Google Cloud Monitoring Agents

The document provides a step-by-step guide to install and configure the Stackdriver monitoring and logging agents on a Google Cloud Engine instance. It includes commands to download and execute scripts for adding the necessary repositories, updating the package list, and installing the agents. Additionally, it shows how to configure the Stackdriver agent for Apache logging by downloading a specific configuration file.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

curl -sSO [Link]

sh
sudo bash [Link]
sudo apt-get update
sudo apt-get install -y stackdriver-agent
sudo service stackdriver-agent start

curl -sSO [Link]


sudo bash [Link]
sudo apt-get update
sudo apt-get install -y google-fluentd
sudo service google-fluentd start

(cd /etc/stackdriver/collectd.d/ && sudo curl -O


[Link]
master/etc/collectd.d/[Link])
sudo service stackdriver-agent restart

[Link]="gce_instance"
logName="projects/[PROJECT_ID]/logs/apache-access"
textPayload:"200"

You might also like