@Override
    public Map<String, String> getAllVariables() {
        Map<String, String> variables = new HashMap<>();
        for (Map.Entry<String, String> entry : tags.entrySet()) {
            variables.put(asVariable(entry.getKey()), entry.getValue());
        }
        variables.putAll(parentMetricGroup.getAllVariables());
        return variables;
    }
The {@link MetricGroup} for table formats.
inlong-sort/sort-formats/format-rowdata/format-rowdata-base/src/main/java/org/apache/inlong/sort/formats/metrics/FormatMetricGroup.java