Upgrade billing dashboards


In Abiquo 5.2.0 the dashboard billing scripts have been integrated into the main platform. You will need to work on these upgrade steps at different stages of the Abiquo upgrade process.

Disable old dashboard scripts before the upgrade 

In Abiquo 5.2, the billing dashboard feature has moved to the core Abiquo platform.

If you are using the billing dashboard scripts from previous versions, disable them before you continue with the upgrade.

  1. Remove the cron jobs to run the billing scripts.

    # rm /etc/cron.d/abiquo-billing-ec2
    # rm /etc/cron.d/abiquo-billing-arm


Remove last bills

Delete the last bills from the previous version of the billing dashboards (from the billing_consolidation and billing_register tables).

Remove the bills for Azure and Amazon providers, for the number of months covered by the abiquo.enterprise.property.billing.monthoffset property, which has a default value of 2 months. 

Later the new billing dashboard feature will regenerate these bills.

Add new billing providers such as Google Cloud Platform

To configure the billing dashboard for the Google Cloud Platform, see Display Google Cloud Platform billing data.

For full configuration of each provider dashboard, see the pages under: Display cloud provider billing data

Configure defaults with properties

As part of the upgrade process do these steps.

To configure the frequency and amount of data that Abiquo will obtain from the cloud provider 

  1. On the API server, edit the abiquo.properties file and optionally these properties:
    1. To change how often the platform will obtain billing data, enter a cron expression. The default expression is as follows.

      abiquo.billing.task.cron = 0 30 0 ? * * *

      If the cron expression is not compatible with Quartz, the platform will use the default. 

    2. To configure the number of months to obtain billing data for, enter an integer months offset. The default is to get data for 2 months, but it might be interesting to go back for 6 months at least:

      abiquo.enterprise.property.billing.monthoffset=6

  2. To optionally set the default country code for billing, on the Remote Services server, edit the abiquo.properties file and optionally set the country_code property.

    abiquo.billing.azure.country_code=US

    You can also override this value in your cloud tenants with an enterprise property as required.

Check and change enterprise properties

  1. The upgrade will automatically rename this enterprise property and you must change it for resellers

    ProviderProperty nameNoteDescription
    AWS

    amazon_bucket

    (warning) Replaces billing_bucket
    (minus) Changed value for resellers

    Name of the S3 bucket where Amazon stores billing data.
    After the upgrade, for resellers, add the AWS billing bucket name.
    Note that you can copy this from the old configuration files.



  2. The upgrade will rename the following enterprise properties as described in the Note column.
    And you MUST now add them for all Azure subscriptions (they previously may have only been for standard or reseller accounts)   

    ProviderProperty nameNoteDescription
    Azureazurecompute-arm_currency_code(warning) Replaces Currency
    • Required for all Azure accounts
    • Three character currency code of the bill. Default is USD
    • WARNING! Different from currency_code used for conversion factor
    Azurebilling.azure.country_code(warning) Replaces RegionInfo
    • Two character country code of the bill.
    • Use to override the default set with abiquo.properties
    • Add to reseller accounts
    Azure

    azurecompute-arm_discount

    No change

    • Required for all Azure accounts
    • Provider discount value
    • Add to standard accounts
    • Can be set to 0 for standard accounts



  3. The upgrade will automatically rename the following enterprise properties and you shouldn't need to make any changes to them.

    ProviderProperty nameNoteDescription
    AWSamazon_report_name

    (warning) Replaces report_name

    Part of the path: amazon_bucket/amazon_bucket_prefix/amazon_report_name/file.csv

    AWSamazon_bucket_prefix(warning) Replaces report_prefix

    Part of the path: amazon_bucket/amazon_bucket_prefix/amazon_report_name/file.csv



  4. Add the following NEW enterprise properties as part of the upgrade process.

    ProviderProperty nameDescription
    AWS

    amazon_billing_compress_format

    For all Amazon accounts.
    Compression format for the billing reports.
    Values can be "ZIP" or "GZIP"
    Azureazurecompute-arm_only_bill_subscriptionOnly for enterprises with Azure plans under CSP subscriptions; NOT for resellers.
    Use it for enterprises that belong to a tenant with multiple subscriptions, to compute the cost of the usage of the subscription only.
    If the enterprise doesn’t have the property, it will compute usage + product cost
    Google

    dataset_id

    For all account types. The ID of the big query dataset where Google will store the billing data


  5. Remove the following enterprise properties that are deprecated as part of the upgrade

    ProviderProperty nameDescription
    AzureOfferDurableIDPreviously for CSP accounts, this was the ID of the customer in the configuration file


  6. To enable the platform to access the billing data in the provider.
    1. For each provider obtain pricing credentials. See Obtain public cloud credentials
    2. Edit the Enterprise and go to CredentialsPricing
    3. Add Pricing credentials.
    4. Note: When you add Pricing credentials to an enterprise with a pricing model, this will also activate price list synchronization to onboard hardware profile prices from Amazon and Azure.
      See Import hardware profile prices.
       
  7. Remove the old billing dashboard modules and their configuration files. See Remove deprecated billing dashboard configuration
     

Troubleshooting enterprise properties

You can check your enterprise properties against the lists on these pages:



Copyright © 2006-2022, Abiquo Holdings SL. All rights reserved