void getAllMetricNamesForService(Request req) {
        String service = req.parameters().get(0).asString();
        ConsumerId consumer = toConsumerId(req.parameters().get(1).asString());
        withExceptionHandling(req, () -> {
            String metricNames = metricsManager.getMetricNamesForServiceAndConsumer(service, consumer);
            req.returnValues().add(new StringValue(metricNames));
        });
    }
Rpc server for the metrics proxy.

When a new object is created after reconfiguration, it will claim ownership of the methods
in the given {@link RpcConnector}. This is ok because at the time this component is created,
all components it depends on are already created.

@author gjoranv
metrics-proxy/src/main/java/ai/vespa/metricsproxy/rpc/RpcServer.java