private void ensureNotFrozen() {
        if (isFrozen) throw new IllegalStateException("Frozen Metrics cannot be modified!");
    }
Once a getter is called, the instance is frozen and no more metrics can be added.
metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/Metrics.java