Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2908

Remove associated metrics when queue is removed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • None

    Description

      1. after a queue is removed, its metrics will continue to be reported by prometheus. This is fine with metrics like allocated resource because they will just be 0, but it won't make sense for guaranteed and max resources, giving wrong impression that there are still resource given to the queue. I propose to unregister all this queue's metrics when it's removed.

      2. If queue is not removed but guaranteed or max resource config is removed, or just a resource type is removed from the config, the metrics are also not cleaned up. these metrics are only updated when there's a new valid value, but not 'null' value. I propose to always delete all existing guaranteed and max resources metrics of the queue then add back the new values, every time we apply the configs.

      Attachments

        Issue Links

          Activity

            People

              hguo25 Hengzhe Guo
              hguo25 Hengzhe Guo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: