Calculate Savings

Automation

The scripts below rely on the gcloud command-line tool for Google Cloud. To download and install the gcloud command-line tool follow the instructions here. If you need help please reach out to use here.

Examples:
Configure a single server to stop weekdays at 6pm and start at 7am
        
    gcloud compute instances add-labels [[servername]] --labels=stop-wd-6_00pm-est=,start-wd-7_00am-est=
      --project [[projectID]]
        

Configure every server in a project to stop everyday at 6pm and start at 7am.
        
    PROJECTID=yourprojectid
    for server in $(gcloud compute instances list --format="value(name)" --project $PROJECTID)
      do  
        gcloud compute instances add-labels $server \
          --labels=stop-wd-6_00pm-est=,start-wd-7_00am-est= --project $PROJECTID  
      done
          
          

List all of the servers in your project and the labels.
        
      PROJECTID=[[your projectid]] \
      gcloud compute instances list --format="table(name, labels)" --project $PROJECTID
          
          

We are here to help!

If you need a custom script to automate your cost savings, simply send a note to support@cloudthrifty.com