Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-5142

Add tooltip units for CPU request and limit recommendation

XMLWordPrintable

      The recommendations API is missing CPU units (see the "format" property) for the limits and requests recommendation. As a result, the UI omits CPU units when displaying the chart tooltips. This looks odd because we're showing units for boxplot data in the same tooltip. As a user, I'd expect to see "cores" for all values in the tooltip Vs an empty string.

      I believe the units were intentionally omitted from the API because we show the limits and requests recommendation as YAML in the UI.

      "The yaml format for the resource units needs to adhere to the Kubernetes standard that is outlined here https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/.
      Eg. "45 millicores" is represented as "45m", 64 MiB is represented as "64Mi", 2.3 cores is represented as "2.3" (Note cores is not specified)" – dinogun21

      Tooltip

      API

        1. format.png
          39 kB
          Daniel Labrecque
        2. image-2024-06-19-15-14-33-488.png
          310 kB
          Yash Ajgaonkar
        3. tooltip.png
          256 kB
          Daniel Labrecque

            dlabrecq@redhat.com Daniel Labrecque
            dlabrecq@redhat.com Daniel Labrecque
            Yash Ajgaonkar Yash Ajgaonkar
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: