Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCP: Add Stackdriver setup to GCP/GKE setup script for #41 #49

Closed
rtannenbaum opened this issue Jan 14, 2018 · 1 comment
Closed

GCP: Add Stackdriver setup to GCP/GKE setup script for #41 #49

rtannenbaum opened this issue Jan 14, 2018 · 1 comment
Assignees

Comments

@rtannenbaum
Copy link
Contributor

We will provide a generic Java interface for metrics writing for #41. For GCP, we will hook this up to write to Stackdriver.

Stackdriver includes logging and monitoring agents for VMs. This monitors some metrics for free such as CPU utilization.

We should script the creation of a Stackdriver account (or point to an existing one) in our GCP project setup script

We should also add a VM startup script:
https://cloud.google.com/compute/docs/startupscript

and include Stackdriver agents in the VM start up script:

To install the Stackdriver monitoring agent:

$ curl -sSO https://repo.stackdriver.com/stack-install.sh
$ sudo bash stack-install.sh --write-gcm

To install the Stackdriver logging agent:

$ curl -sSO https://dl.google.com/cloudagents/install-logging-agent.sh
$ sudo bash install-logging-agent.sh

@rtannenbaum rtannenbaum self-assigned this Jan 14, 2018
@rtannenbaum rtannenbaum changed the title GCP: Add Stackdriver setup to VM startup script for #41 GCP: Add Stackdriver setup to GCP/GKE setup script for #41 Jan 14, 2018
@rtannenbaum
Copy link
Contributor Author

rtannenbaum commented Jan 14, 2018

Actually by enabling Stackdriver in the GCP project, and creating an account name (= project name) and starting the free trial, it automatically started reporting the builtin metrics.

So luckily, no VM/startup script adjustment is necessary

We should still script the enabling of Stackdriver in the GCP/GKE setup script

rtannenbaum added a commit that referenced this issue Jan 14, 2018
This does not appear to be scriptable unfortunately
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant