Hetzner Team Billing Hacks: Save Money & Streamline Payments
Introduction
Managing cloud costs for a development team can feel like a constant juggling act. Hetzner’s Team Billing feature gives you a single invoice for all projects, but most users only scratch the surface. In this guide we reveal practical Hetzner team billing hacks that cut waste, simplify bookkeeping, and keep your budget under control.
Understanding Hetzner Team Billing
Hetzner aggregates usage from every account in a team into one consolidated invoice. This makes it easier to track spend, apply discounts, and allocate costs to internal departments. However, the default setup often leaves hidden expenses:
- Unmonitored VM snapshots
- Orphaned volumes
- Over‑provisioned traffic limits
Why Hack the System?
By tweaking a few settings and adopting smart workflows you can:
- Reduce monthly spend by up to 30%.
- Gain real‑time visibility into each project’s cost.
- Avoid surprise charges at the end of the billing cycle.
Hack #1 – Tag‑Based Cost Allocation
Use Hetzner’s resource tags to label every server, storage, and load balancer with the responsible team or project. Then export the tag data via the API and feed it into a simple spreadsheet or a tool like Cost‑Explorer. This makes cost allocation a click away.
curl -H "Authorization: Bearer $API_TOKEN" \ https://api.hetzner.cloud/v1/servers?label_selector=project=frontend
Tagging also lets you set automated alerts for resources that exceed budget thresholds.
Hack #2 – Auto‑Shutdown of Idle Servers
Identify VMs that haven’t received traffic for a configurable window (e.g., 48 hours) and schedule an automatic shutdown:
#!/bin/bash # Fetch all servers servers=$(curl -s -H "Authorization: Bearer $TOKEN" https://api.hetzner.cloud/v1/servers | jq -r '.servers[].id') for id in $servers; do idle=$(curl -s -H "Authorization: Bearer $TOKEN" https://api.hetzner.cloud/v1/servers/$id/metrics | jq '.cpu_avg') if (( $(echo "$idle < 0.02" | bc -l) )); then curl -X POST -H "Authorization: Bearer $TOKEN" https://api.hetzner.cloud/v1/servers/$id/actions/shutdown fi done
Combine this script with a cron job to run nightly. You’ll instantly see reduced CPU‑hour charges.
Hack #3 – Consolidate Backups & Snapshots
Backups are priced per GB. Instead of letting each project keep its own snapshots, centralize them on a single low‑cost storage server:
- Create a dedicated
backup‑nodewith high‑performance SSD. - Mount the same volume on all VMs via NFS or Ceph.
- Schedule daily rsync jobs to copy only incremental changes.
This reduces duplicate data and cuts storage fees dramatically.
Hack #4 – Use Traffic Packages Wisely
Hetzner offers traffic bundles (e.g., 20 TB for a flat fee). Monitor monthly outbound traffic and only enable a package when you expect a spike (launch, marketing campaign, etc.). Disable it by setting a lower monthly_traffic_limit via the API once the surge passes.
Hack #5 – Leverage the “Team Discount” Threshold
When the combined monthly spend crosses €500, Hetzner automatically applies a 5% discount. To hit this threshold without overspending:
- Group low‑usage VMs into a “burst” pool that runs only during work hours.
- Turn off non‑essential services on weekends.
- Track the threshold with a simple webhook that notifies the team when spend reaches €450.
FAQ
1. Does tagging affect performance?
No. Tags are metadata only and incur no extra cost.
2. Can I automate snapshot deletion?
Yes, use the snapshots endpoint with a retention rule (e.g., keep the last 7 days).
3. Are traffic packages refundable?
Unused traffic does not roll over, but you can downgrade the package before the next billing cycle.
4. Will auto‑shutdown interrupt running jobs?
Configure a graceful shutdown script that saves state before the VM powers off.
5. How often should I review the cost report?
At minimum weekly; for fast‑growing teams, daily checks are advisable.
Conclusion & Call to Action
Hetzner’s Team Billing is a powerful foundation, but the real savings come from proactive management. Implement the hacks above, monitor results, and iterate. Your budget will thank you, and your team can focus on building, not billing.
Ready to take control of your Hetzner costs? Contact our cloud‑optimization experts today for a customized audit and a free cost‑reduction roadmap.
Comments are closed, but trackbacks and pingbacks are open.