doc for metric_set_max and metric_set_min