public List<Sample> convertTelegraf(TelegrafDatum telegrafData) {

        List<Sample> sampleList = new ArrayList<>();

        Map<String, Object> fields = telegrafData.getFields();
        String name = telegrafData.getName();
        Map<String, String> tags = telegrafData.getTags();
        ImmutableMap<String, String> immutableTags = ImmutableMap.copyOf(tags);
        long timestamp = telegrafData.getTimestamp();

        fields.forEach((key, value) -> {
            if (value instanceof Number) {
                Sample.SampleBuilder builder = Sample.builder();
                Sample sample = builder.name(name + "_" + key)
                        .timestamp(timestamp * 1000L)
                        .value(((Number) value).doubleValue())
                        .labels(immutableTags).build();

                sampleList.add(sample);
            }
        });
        return sampleList;

    }
Convert the TelegrafData object to meter {@link Sample}
oap-server/server-receiver-plugin/skywalking-telegraf-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/receiver/telegraf/provider/handler/TelegrafServiceHandler.java