Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8831

Resource metrics are named percent and documented in such a way even though they represent fractions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • agent, documentation, master
    • None

    Description

      A number of metrics reporting fractions of used resources are called *_percent and documented in that spirit which is confusing since percentages and fractions have e.g., different ranges and units, e.g.,

      master/cpus_percent Percentage of allocated CPUs Gauge
      master/cpus_used Number of allocated CPUs Gauge
      master/cpus_total Number of CPUs Gauge
      master/cpus_revocable_percent Percentage of allocated revocable CPUs Gauge
      master/cpus_revocable_total Number of revocable CPUs Gauge
      master/cpus_revocable_used Number of allocated revocable CPUs Gauge
      master/disk_percent Percentage of allocated disk space Gauge
      master/disk_used Allocated disk space in MB Gauge

      Ideally we would rename these values (e.g., used _fraction instead of _percent suffix) and updated the documentation, but since this would be a breaking API change we'd likely need to support two forms simultanously.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bbannier Benjamin Bannier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: