add customized constrains on metrics

Change-Id: I25f1900c9fb969a9fa5df1d48172b8cb075d3d8e
Merge "add customized constrains on metrics"