⚡ Only 300 spots remaining • Closes in 2d 14h 32m

Back to Workflow Library
Cloud Services

DigitalOcean Droplet Autoscaler

Automate resource scaling based on demand. This workflow receives webhook alerts from Prometheus or Grafana. If CPU/memory utilization exceeds thresholds, it issues an API request to DigitalOcean to resize the Droplet or trigger a new replica deployment.

#DigitalOcean
#Autoscaling
#Prometheus
#Webhooks
#Cloud

Automation Logic

n8n JSON Blueprint

This workflow is pre-configured and ready for deployment. Simply import the JSON template into your n8n instance and configure your credentials.

This is an exclusive blueprint. Copy the JSON below to use it.

QUICK DEPLOY

  • 1
    Download the .json file
  • 2
    Open n8n & click "Import"
  • 3
    Configure your API keys

PRO TIP

Always test your workflow in a development environment before pushing to production.

JSON BLUEPRINT

n8n-workflow.json
{
  "nodes": [
    {
      "parameters": {
        "path": "prometheus-alerts"
      },
      "name": "Alert Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        100,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.digitalocean.com/v2/droplets/{{$json.dropletId}}/actions",
        "headers": {
          "Authorization": "Bearer your-do-api-token"
        },
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "type",
              "value": "resize"
            },
            {
              "name": "size",
              "value": "s-2vcpu-4gb"
            }
          ]
        }
      },
      "name": "Resize Droplet API",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        300,
        300
      ]
    }
  ],
  "connections": {
    "Alert Webhook": {
      "main": [
        [
          {
            "node": "Resize Droplet API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

To use this, copy the JSON above and paste it directly onto your n8n canvas.

IMPLEMENTATION GUIDE

Required Nodes

  • DigitalOcean Node
  • Autoscaling Node
  • Prometheus Node
  • Webhooks Node
  • Cloud Node
  • Cron / Webhook Trigger

Core Benefits

  • 100% Automated Execution
  • Reduces Manual Data Entry
  • Infinite Scalability

Need Help Building Your Private Cloud?

Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.

user