(CDAP-512) Service system metrics

Use `StringBuilder` instead of `String.format` as the overhead of creating a new `Formatter` per response is much higher than `StringBuilder`.