@Override
    public Context createContext(Map<String, ?> stringMap) {
        if (stringMap == null) return defaultContext;
        Map<String, Object> m = new TreeMap<>(stringMap);
        for(String key : defaultDimensions.keySet()) {
            if (!m.containsKey(key)) m.put(key, defaultDimensions.get(key));
        }
        return impl.createContext(m);
    }
Metric reporter wrapper to add component name prefix and common dimensions.
clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/util/ComponentMetricReporter.java