private MetricData parseMetricData(final String metricName, final JsonNode jsonNode) {
        JsonNode statusNode = jsonNode.get("status");
        if (Objects.isNull(statusNode) || !"success".equals(statusNode.asText())) {
            LOG.error("Failed to fetch metric: {} ", metricName);
            return null;
        }

        JsonNode dataNode = jsonNode.get("data").get("result");
        if (dataNode.isEmpty()) {
            LOG.error("No data found for metric: {} ", metricName);
            return null;
        }

        JsonNode valueNode = dataNode.get(0).get("value");
        if (Objects.isNull(valueNode) || valueNode.size() < 2) {
            LOG.error("Invalid metric data format for: {} ", metricName);
            return null;
        }

        try {
            double value = Double.parseDouble(valueNode.get(1).asText());
            return new MetricData(metricName, value);
        } catch (NumberFormatException e) {
            LOG.error("Failed to parse metric value for: {} ", metricName);
            return null;
        }
    }
parseMetricData.

@param metricName metricName
@param jsonNode jsonNode
@return MetricData
shenyu-admin/src/main/java/org/apache/shenyu/admin/scale/collector/PrometheusMetricsProvider.java