Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-18128

Use sharding instead of whole month data queries

XMLWordPrintable

    • CloudOps 2025 Sprint 19
    • 1

      The current implementation of Loki in CloudKitty does just one query per time the user wants to get the generated report. As CloudKitty always works in month-based chunks, this means that the max_query_length must be 745h or bigger, so we can search results in the worst possible case, which is the user generating a report of a whole 31-day month.

      The Red Hat Loki Operator does not support changing this parameter, so we are stuck with the default maximum, which is 7 days.

      The proposed solution is to shard queries launching more queries with shorter periods. For example, Grafana uses by default a query per day. We must modify CloudKitty Loki integration to do sharding if we want it to be working with Red Hat Loki's provisioned operator.

              rhn-engineering-jlarriba Juan Larriba
              rhn-engineering-jlarriba Juan Larriba
              rhos-conplat-observability
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: