[MINOR] Fix transform metric exception problem

- Open transform function and use systemMetricDescriptor for sys metric.

Author: r7raul1984 <tangjijun@yhd.com>

Closes #891 from r7raul1984/minor-counttorate.
2 files changed