private static String toSystemServiceId(String configId) {
        String name = configId.replace("/", ".");
        name = name.replaceFirst("\\.", ".'") + "'";
        return name;
    }
Format metrics as required by users of the "getMetricsById" rpc method.

@author Unknown
metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/MetricsFormatter.java