Looker Actions - Digital Ocean Stop Droplet

Looker Actions - Digital Ocean Stop Droplet

Looker is launching a Digital Ocean Stop Droplet action, allowing customers to manage their IT infrastructure directly from within Looker. This action will allow Looker customers to stop a Digital Ocean droplet on a one-off or scheduled basis.

Enable the Digital Ocean Stop Droplet Action

Note: Your Looker instance must be on Looker 5.6.

  1. To enable the action in Looker, go to your Admin panel. Then in the Platform section, click the Actions Tab. (Admin > Platform > Actions).

  2. Select “Enable” on the Digital Ocean Stop Droplet Action you would like to enable.

  3. In your Digital Ocean API Settings, generate and copy a Digital Ocean Droplet Access Key [https://cloud.digitalocean.com/settings/api/tokens]. (Digital Ocean API -> Tokens -> Generate Token)

  4. Copy your Digital Ocean API key and paste into the Looker Actions Page.

Stop Digital Ocean Droplet

Great, now you’ve setup your API keys so that Looker can communicate with Digital Ocean!

Add Digital Ocean Droplet Id Tag

To engage the Digital Ocean Stop Droplet action, first add the new digitalocean_droplet_id tags to your existing model.

dimension: digitalocean_droplet_id {
    sql: ${TABLE}.digitalocean_droplet_id ;;
    tags: ["digitalocean_droplet_id"]
}

Create and Send or Schedule a Report

  1. In Looker, view a Look or explore data that displays the Digital Ocean droplets you want to stop, e.g. high cost and low utilized droplets.

  2. To stop a single droplets, select the ellipsis next to the ID tagged with digitalocean_droplet_id.

  3. Then start to send the data now or schedule the data to be sent later or periodically to stop a full list of Digital Ocean droplets.

  4. In the Send or Schedule window’s Destination field, select “Digital Ocean Stop Droplet”.

Your droplets will be stopped in your Digital Ocean management console!

0 1 434
1 REPLY 1

That sounds great. I use Cloudways to manage my DigitalOcean server. It provides many features like this including Server Cloning, Server transferring, Server stopping etc. The best thing is DigitalOcean has lower their pricing and now giving 1GB server in just $5.

Top Labels in this Space
Top Solution Authors