public Sample build(String service, String instance, long timestamp) {
        return Sample.builder()
            .name(name)
            .labels(ImmutableMap.<String, String>builder()
                // Put original labels
                .putAll(labels)
                // Put report service and instance to labels
                .put("service", service)
                .put("instance", instance)
                .build())
            .value(value)
            .timestamp(timestamp).build();
    }
Help to build Sample with agent side meter.
oap-server/analyzer/agent-analyzer/src/main/java/org/apache/skywalking/oap/server/analyzer/provider/meter/process/SampleBuilder.java