Add custom metric from rule