ahmedhesham301/autoscaling-hetzner — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me an autoscaling control plane for Hetzner Cloud servers.

I want to run it with Docker Compose and have it start the API, Postgres, Prometheus, Grafana, and the metrics scraper together. The API should let me discover Hetzner locations, images, server types, networks, firewalls, and SSH keys. Then I should be able to create server templates and autoscaling groups with a name, region choices, server type, min size, desired size, max size, and CPU or memory thresholds.

When a group is created, the app should create the needed Hetzner servers, store templates, groups, and servers in Postgres, expose a targets endpoint for scraping Node Exporter, and set up Grafana alerts that call the API so it can scale up or down. Include a sample env file, sensible local defaults, and clear README steps for using the HTTP API since there’s no frontend yet.

Use Go for the API. Look up current docs online if you need to.

Want more depth? Deep Reverse