Configure OpenNebula Metered Billing Package

Configure OpenNebula Metered Billing Package

Once you activate the OpenNebula module and connect HostBill with OpenNebula Hosting, you can configure your package.

To enable metered billing in your OpenNebula package:


  • Go to "Settings->Products & Services->[Your OpenNebula Package]"

  • Under "Price" Select "Metered"

  • From "Billing type" select one of available options:

    • Post Pay - Client pays for used resources by the end of billing period

    • Pre Pay - Initial fee is used as credit, which will be deducted automatically based on resources usage. Min. credit threshold can be set that will automatically generate next invoice, to avoid sudden suspension/downtimes.

    • Once account credit reach 0 account will be suspended. Do not use Form elements with pre-paid billing.

 

  • If "Pre Paid" is enabled, enter:

    • "Initial credit" - This is initial funds client will be asked to add during signup

    • "Credit treshold" - Once account credit balance will reach this level, new invoice to top-up credit will be generated

    • "Generate invoices" - Determines how often invoices should be generated for this service

 

  • If "Post Pay" is enabled, enter:

    • "Generate invoices" - Determines how often invoices should be generated for this service

    • "Setup fee" - optional flat setup fee to charge customer

    • "Fixed recurring fee " - Additional, fixed amount, recurring charge for service

 

  • Variables available to bill in metered billing:

    • Resources Pricing

      • Memory - Total memory used in last hour by client's virtual machines

      • CPU Cores - CPU Cores count used in last hour by client's virtual machines

      • Disk Size - Total disk size used in last hour by client's VMs

      • IP Addresses - Total IP count assigned in last hour to client's VMs

      • Vm Snapshot Size - Total vm snapshot size used in last hour by client's VMs

      • Disk Snapshot Size - Total disk snapshot size used in last hour by client's VMs

        image-20250822-101243.png


    • Usage Pricing

      • Disk data read - Amount of data read from client's VMs disks, measured in billing period

      • Disk data write - Amount of data written client's VMs disks, measured in billing period

      • Disk data read IOPS - Amount of data read iops from client's VMs disks, measured in billing period

      • Disk data write requests - Amount of data written iops client's VMs disks, measured in billing period

        image-20250822-101404.png


    • Off Pricing - You can additionally set prices per resource below when VM is powered off. Set to 0 if no charge should be applied.

      • Memory Off - Memory reserved but unused (powered off) client's virtual machines

      • CPU Cores Off - CPU Cores count reserved by unused (powered off) client's virtual machines

      • Disk Size Off - Total disk size reserverd by unused (powered off) client's virtual machines

      • IP Addresses Off - Total IP count reserved by unused (powered off) client's virtual machines

        image-20250822-101543.png

         

    • IPs pricing

      • IP usage/price per network zone - add metered variable for specific network zone

        image-20250822-101643.png

         

    • Traffic pricing

      • Data sent/received price per network zone - add metered variable for specific network zone

        image-20250822-101751.png

         

    • Storage pricing

      • Disk usage / price per data store zone - add metered variable for specific data store

        image-20250822-102103.png

         

    • Backup pricing

      • Backup usage / price per data store zone - add metered variable for specific data store

        image-20250822-102015.png

         

    • Template pricing

      • Template usage / price per for template Id - add metered variable for specific template

        image-20250822-102147.png