Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-1924

Support comma-separated product ids list as "product" label match when querying observatorium

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2024-02-05 - API
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • BIZ-629 - ELS add on for concurrent (non-pay-as-you-go) RHEL offerings

      Getting creative with how we can detect these RHEL payg products with rhelemeter, since the role available on the hosts isn't unique enough to differentiate between different variants.

      This change enables hosts to report a list of comma-separated engineering Ids in its "product" label. We'll detect comma-separated engineering Ids and set the swatch event.productIds field accordingly.

      Adjust our promql to use a regex filter so we can tolerate arbitrary changes to the product list like: product=~"(^|,)(69|204)($|,)". These should be read from product configuration when building the query.

      When we match by product IDs, the event that gets created needs to populate the product_ids field in event (rather than role).

      During hourly tally, we already match events to swatch subscription definitions by using event.role or event.productIds anyway.

      https://github.com/RedHatInsights/rhsm-subscriptions/pull/2747/files

       

          There are no Sub-Tasks for this issue.

              lburnett0 Lindsey Burnett
              lburnett0 Lindsey Burnett
              Sumedh Sidhaye Sumedh Sidhaye
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: