Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-3814 Azure RHEL Metered Usage Pipeline to SWATCH
  3. COST-4589

Ensure that Azure RHEL data for the last day of the month is extracted

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • February 2024, 2024Q1
    • None
    • None
    • None
    • 1
    • False
    • None
    • False

      With the current implementation of Azure RHEL/SWATCH, we will always miss data for the last-of-the-moth day.

      The problem seems to be that when determining end_date for subs. processing for a given month, we identify the last day for which we have data in Trino and push this date one day back to prevent processing of days with incomplete data:

      Provider.PROVIDER_AZURE: " SELECT coalesce(NULLIF(resourceid, ''), instanceid), date_add('day', -1, max(coalesce(date, usagedatetime))) ",  

      Thus, the last day of the month will never be processed, because this day is the max possible date in Trino -> thus the max. possible end_date for subs. processing will always be last-day-of-the-month - 1

       

              cgoodfre Corey Goodfred (Inactive)
              rhn-support-esebesto Eva Šebestová
              Eva Šebestová Eva Šebestová
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: