Hi Anping, would you mind testing this with the latest images? We think the problem was that the oc client in the deployer image didn't match the version of the Master.
The problem had been fixed, we can use the command as following to upgrade metrics. oc new-app -f metrics.yaml --as=system:serviceaccount:openshift-infra:metrics-deployer \ --param IMAGE_PREFIX=xxx:5000/openshift3/ \ --param IMAGE_VERSION=3.4.0 \ --param MASTER_URL=https://xxx:8443 \ --param HAWKULAR_METRICS_HOSTNAME=xxx.com \ --param MODE=refresh
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0066