If your question is how to create a custom LoadMetric, simply implement org.jboss.modcluster.load.metric.LoadMetric and contribute it to the set of metrics with which your org.jboss.modcluster.load.impl.DynamicLoadBalanceFactorProvider is constructed.