public int getMetricsServiceThreadPriority() {
    int priority = Integer.parseInt(getProperty(METRIC_RETRIEVAL_SERVICE_THREAD_PRIORITY));
    if (priority < Thread.MIN_PRIORITY || priority > Thread.MAX_PRIORITY) {
      priority = Thread.NORM_PRIORITY;
    }

    return priority;
  }
Gets the priority of the {@link Thread}s used by the
{@link MetricsRetrievalService}. This will be a value within the range of
{@link Thread#MIN_PRIORITY} and {@link Thread#MAX_PRIORITY}.

@return the thread proprity.
ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java